# SingleStore — full site content for AI agents Companion to /llms.txt: the core marketing pages, comparisons and customer stories of www.singlestore.com as Markdown, one file. Generated 2026-11-18 from the pages themselves; every page is also available as Markdown at index.md. --- Source: https://www.singlestore.com/ai/ # Agentic Intelligence: AI on Live Business Data Agentic Intelligence in SingleStore Helios lets people ask questions about live business data in plain English, and gives models and agents the same current context to act on. # Agentic Intelligence Agentic Intelligence gives models, agents and end users a shared foundation for asking questions, generating answers and building AI experiences grounded in the same live understanding of your business, so one agent’s action can become the next agent’s context. ## Answers come from the data **your applications just wrote.** Agentic Intelligence runs on SingleStore Helios, one engine for transactions, analytics, vector and full-text search. An answer reflects a write from moments ago, with no copy or sync in between. [See SingleStore Helios](https://www.singlestore.com/product-overview/) [Aura Analyst](https://www.singlestore.com/ai/aura-analyst/) Ask questions in natural language and get trusted answers. [AI Functions](https://www.singlestore.com/ai/ai-functions/) Run AI directly in SQL. Summarize, classify, embed and enrich, without moving data. [MCP Server](https://docs.singlestore.com/cloud/ai/singlestore-mcp-server/) Connect your development tools directly to SingleStore and work with live data. Context Engine A reusable semantic layer that unifies your data, business logic and relationships into trusted context The foundation that gives AI real understanding [Models](https://www.singlestore.com/aura-container-services/) Use the right model for the job, hosted or open source. Bring your own or choose from our curated catalog Flexibility to match your data performance and cost needs [SingleStore Helios](https://www.singlestore.com/product-overview/) One engine for transactions, analytics, vector and full-text search, on one live copy Build for operational and analytical workloads ## Agentic Intelligence meets users, developers and agents where they already work: in natural-language analytics, inside SQL, and through MCP-connected tools. ## Aura Analyst Users ask questions in plain English, and Aura Analyst interprets the request, plans the query, generates SQL, validates it, executes it against live operational data and explains the results. Where it makes sense, it also returns charts and visualizations. Business leaders can answer more of their own questions without waiting for dashboards or SQL requests, while engineering teams retain complete visibility into the generated queries and continue to govern how data is accessed. ## AI Functions from inside SQL With AI Functions, teams can call AI capabilities from SQL. That makes it possible to classify, summarize, score or enrich data without first exporting it to another system. Models give teams flexibility in how inference runs. You can call externally hosted models or run open-source models closer to your SingleStore environment when latency, control or data locality matter more. Embeddings can be stored and searched as native vectors alongside the rows they describe. That means similarity search can run against current operational data instead of a separate vector database that only reflects the last sync. ## Connect with MCP Developers can connect tools like Cursor, Claude Code, VS Code, Claude Desktop, Windsurf, Gemini CLI and other supported clients to live SingleStore environments. Their coding assistants can inspect schema, run SQL and reason about real data without relying on pasted table definitions or stale exports. For engineering teams, that means the assistant works from the database as it is, with its real schema and its current data. Authentication uses a browser-based OAuth flow for local development. Docker-based clients use API key configuration. ## Vector and full-text search, **joined to the rows they describe.** Hybrid vector and full-text search runs in one SQL query on current data, with no separate vector database to keep in sync. In VectorDBBench, on 10 million 768-dimension vectors, SingleStore matched the search performance of Pinecone and Zilliz. [Explore vector search](https://www.singlestore.com/built-in-vector-database/)[Read the benchmark](https://www.singlestore.com/blog/singlestore-matches-vector-search-performance-of-pinecone-and-zilliz/) ## Build intelligence that pays off: Self-service operational analytics Let business teams ask questions against governed live data without waiting for every answer to become a dashboard. [See Aura Analyst](https://www.singlestore.com/ai/aura-analyst/) AI agents with shared context Developer copilots for live data Real-time AI applications Use fresh operational data, vectors, SQL and model calls to power personalization, fraud detection, recommendations, support automation, telemetry analysis and other workloads where stale context is not good enough. [Build with vector search](https://www.singlestore.com/built-in-vector-database/) Embedded intelligence inside products ## AI on live data, **in production today.** ## Benefits Real-time AI reads the rows your applications just wrote. Secure + Governed Answers run under your database permissions, and engineers can see every query Aura Analyst generates. Open + Interoperable Connect the models, tools, and platforms you already use. ## Related articles Blog Introducing AI Functions: Power of AI With the Simplicity of SQL Blog The Rise of the Intelligence Layer Blog Introducing Python User-Defined Functions in SingleStore: Bringing the Power of Python to SQL ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Learn more from Docs Get step-by-step guides, API references, and best practices to help you build and optimize with SingleStore. --- Source: https://www.singlestore.com/product-overview/ # SingleStore Helios: The Cloud Database for Apps and AI SingleStore Helios is the cloud database for apps and AI agents: transactions, analytics, vector and full-text search on one copy of data, on any major cloud. # SingleStore Helios® The database for the applications you run today and the agents you’ll run next: transactions, analytics, vector and full-text search on one copy, queryable the moment it’s written. ## Transactions + analytics SQL + NoSQL Vector + full-text search SingleStore Helios® is a cloud database-as-a-service available on AWS, Microsoft Azure and Google Cloud and delivers elastic scalability, high availability and exceptional price-performance for your applications, without the burden of managing your data infrastructure. SingleStore Helios scales storage independently of compute and includes Jupyter notebooks, data integration services and a compute service for running AI workloads, so developers, ML engineers and data engineers can build together. Queries over petabytes of data, Siemens [ Concurrent users with no contention, Fortune 25 bank [40,000+](https://www.singlestore.com/made-on/fortune25bank/) Events an hour, impact.com [20M](https://www.singlestore.com/made-on/impact/) ## The future is already here. **Watch it in 45 seconds.** Why agents need the live state of the business, and how one engine with one copy gives it to them. The future is already hereSingleStore · 0:45 ## One database for the data agents read and write. An agent reads current data, decides and writes back, and the next agent reads that write. When records, embeddings and business definitions sit in separate systems, every hop adds a copy and a delay. Helios keeps them in one engine, so every agent reads the latest write. ### Business definitions held once The SingleStore Context Engine stores definitions, relationships and permissions in the database. Agents read them on every call and stop rediscovering the schema. ### Vector and full-text search on live rows Vector and full-text search join to the rows they describe in one SQL query. Embeddings sit in the same tables as the records, so there is no separate store to keep in sync. ### Agent writes readable on commit Transactions and agent writes are queryable the moment they commit. An agent sees its own write, and the next agent acts on it. ## Built for the applications you run today Designed for (and by) developers and architects, for applications that read and write live data under heavy concurrency. Low latency, high concurrencySingle-digit millisecond response times on large datasets across hundreds of concurrent users running complex queries
[Learn more](https://www.singlestore.com/solutions/real-time-analytics/) Fast ingestionSingleStore Pipelines offer parallel data ingestion (with optional transforms) from multiple data sources such as Kafka, Amazon S3 and HDFS[Learn more](https://docs.singlestore.com/cloud/load-data/load-data-with-pipelines/) Horizontal scalabilityScale out architecture + separation of storage and compute for optimizing price-performance.[Learn more](https://docs.singlestore.com/cloud/manage-data/benefits-of-unlimited-storage/) ClustersClusters allow you to scale compute independently while workloads run on shared data.[Learn more](https://www.singlestore.com/platform/clusters/) ## One engine, one copy, three storage tiers. ### One table, three storage tiers Writes land in an in-memory rowstore and move to the columnstore in the background, so a row is queryable the moment it commits. Data sits in memory, on local disk and in object storage, so storage scales apart from compute. ### Distributed and shared-nothing Aggregator and leaf nodes spread data and queries across the cluster. Add nodes for scale and fault tolerance. ### Ingest at the source Pipelines load from Kafka, Amazon S3 and HDFS, or from CDC, straight into the table, with optional transforms. ## One engine, **or two engines and a sync.** Every major platform now pairs a transactional engine with an analytical one. Here is how each keeps them in step, from each vendor’s own pages. | Platform | Transactions run in | Analytics run in | How the data gets from one to the other | Status | |---|---|---|---|---| | SingleStore Helios | One engine | The same engine, on the same table | Nothing to move: rows are queryable on commit | Generally available | | Databricks Lakebase[Compare](https://www.singlestore.com/comparisons/databricks/) | Postgres | The lakehouse | Synced to the lakehouse; LTAP (one governed copy) is announced as coming soon | Lakebase available; LTAP in Beta and preview (as of November 2026) | | Snowflake Postgres[Compare](https://www.singlestore.com/comparisons/snowflake/) | Postgres | The Snowflake warehouse | Mirrored to Snowflake “in seconds” | Available on AWS and Azure | | Snowflake hybrid tables[Compare](https://www.singlestore.com/comparisons/snowflake/) | A row store | A columnar copy | Copied to columnar storage asynchronously | Available on AWS and Azure; GCP in preview (as of November 2026) | | ClickHouse Managed Postgres[Compare](https://www.singlestore.com/comparisons/clickhouse/) | Postgres | ClickHouse | Replicated by CDC, with lag “as low as a few seconds” | Available on AWS; GCP in private preview (as of November 2026) | From each vendor’s public product pages and announcements, November 17, 2026. Stitching two engines also costs more. In a 2022 GigaOm study, SingleStore had **50% lower TCO** than MySQL plus Snowflake and **60% lower** than PostgreSQL plus Redshift. [Read the GigaOm TCO study](https://www.singlestore.com/media-hub/releases/gigaom-tco-benchmark-report/)[See the comparisons](https://www.singlestore.com/comparisons/) ## More demand. **Keep the business moving.** One fast query is only the beginning. The real test is what happens as more customers, applications and agents need answers at the same time. ## Build faster Tap into the simplicity and programmability of MySQL and MongoDB® wire-protocol compatibility for structured, semi-structured and unstructured data. ### SQL Familiar, powerful SQL for writing and retrieving data. ACID compliant transactions ### Multi-model Relational, JSON/BSON documents, vector search, full-text search, time-series, geospatial, key-value ### Unified table type Unique Universal Storage (rowstore + columnstore) for high performance transactions and analytics ### Collaboration Leverage Notebooks for quickly developing, sharing and collaborating on SQL and Python projects ### Vector + full-text search Fast K-NN and ANN vector search with IVF, HNSW and PQ algorithms. Plus, full text-search for fuzzy or exact text matching ### MongoDB® data analytics in SQL Replicate MongoDB® collections into SingleStore with Pipelines and analyze them with SingleStore SQL. ## Built for the future. **In production today.** Customers measure what changes when the workload moves to Helios. [G2: 4.5 out of 5, 118 reviews](https://www.g2.com/products/singlestore/reviews) [TrustRadius: 8.3 out of 10, 114 reviews, Buyer’s Choice](https://www.trustradius.com/products/singlestore/reviews) [Forrester Wave: Strong Performer, Translytical Data Platforms Wave](https://www.forrester.com/report/the-forrester-wave-tm-translytical-data-platforms-q4-2024/RES181471) ## Running in production around the world [See customer stories](https://www.singlestore.com/made-on/) ## Build for your enterprise With security, high availability, disaster recovery and operational ease built in, SingleStore allows you to focus on creating value for your customers, without having to worry about operational aspects of your data platform. SecurityFor data at rest and in motion, provide authentication, authorization and accounting using tools like Okta, Ping and Azure AD, and audit logging[Learn more](https://www.singlestore.com/security/) ComplianceSecurity certifications including ISO/IEC 27001 and SOC 2 Type 2.
[Learn more](https://www.singlestore.com/security/) AvailabilityEnsure high availability for your mission-critical applications with up to a 99.99% uptime SLA, the ability to recover databases to any point in time and multi-AZ failover
[Learn more](https://www.singlestore.com/platform/high-availability/) Observability + ManageabilityIt’s easy to optimize the performance of your databases with built-in observability, elastic scalability and API-powered database operations.

[Learn more](https://docs.singlestore.com/cloud/user-and-workspace-administration/workspace-health-and-performance/) ## Cloud or data center. The same engine, wherever your data has to live. ### SingleStore Helios Fully managed on AWS, Microsoft Azure and Google Cloud, from a free Shared cluster to dedicated Standard and Enterprise clusters. ### SingleStore Self-Managed The same engine, running in the data center you own and operate. ## Featured resources Blog Getting Started With SingleStore Helios® Cloud Blog Autoscaling in SingleStore Helios® Case Study Tier 1 Bank Saves $40 Million per Year, Repositions Itself as a Financial Innovator ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/platform/ultra-fast-queries/ # SingleStore Query Performance: Analytics on Live Data SingleStore runs analytical queries on operational data in seconds, with a three-tier storage engine and ingest of millions of rows per second. # Ultra-Fast Queries Hundreds of times faster queries. No, that's not a typo. ## From hours to seconds Customers moving to SingleStore regularly reduce query times by orders of magnitude. Bring huge performance increases to your queries with SingleStore’s uniquely efficient, three-tier engine Some of the biggest companies in the world to power their most demanding intelligent applications with SingleStore, providing real-time insights on operational data. Aviram Cohen Chief R&D Officer, Armis > Queries that would time out completely under Elasticsearch are now processing in less than 10 seconds with SingleStore, and some clock in under 1.5 seconds ## Real-time insights on operational data No need for complex ETL processes, or a dedicated team to maintain data pipelines. Get real-time access (single-digit millisecond response times) to your operational data as it lands — in one, unified platform. Process your operational and analytical workloads in a single table type with extremely low latency using our novel storage system, Universal Storage. ## Ingest millions of rows per second Ingest millions of rows per second with [SingleStore Pipelines](https://www.singlestore.com/platform/data-integration/). Parallelized data ingestion from S3, Kafka, HDFS and Iceberg tables Frictionless snapshot data load and change data capture (CDC) from MySQL, MongoDB® and more Reduce or eliminate ETL tooling and data processing costs ## Previously impossible, now possible Unlock new insights your legacy tech stacks can’t handle. SingleStore brings blazing fast queries on data with crazy scale — up to petabytes. Surface more in-depth insights to your customers, bring on bigger customers with bigger workloads and drastically reduce query response times. Migrate to SingleStore today. Case Study Factors.AI went from minutes-long queries to 20 seconds Video • 10 min LiveRamp took one of their batch processes from over 20 hours to a few seconds ## How it works Universal Storage SingleStore’s Universal Storage format unifies transactions and analytics in the same engine to deliver high-performance analytics on operational data in real time — without the need for data movement. Code generation An industrial compiler to produce highly efficient machine code that enables low-level optimizations, which are not possible when executing queries via interpretation alone. Lock-free data structures SingleStore uses memory-optimized, lock-free skip lists and hash tables as its indexes. Unlike B+ Trees, these data structures are designed from the ground up to be fast in memory. Learn more about how we bring huge performance
improvements to customers Blog Build Faster Transactional Apps With SingleStore SingleStore offers a wide range of mission-critical capabilities for enterprise data engineers and SaaS application developers. ## Trusted in production by teams around the world SingleStore transforms how customers use their data — from side projects and small startups, to large organizations and enterprises. Benjamin Rowe Cloud and Security Architect, Arcules > At first we thought SingleStore was 'too good to be true,' but it delivered performance exactly as advertised. ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about how SingleStore queries work --- Source: https://www.singlestore.com/platform/search/ # SingleStore Hybrid Search: Vector and Full-Text Search SingleStore hybrid search combines vector and full-text search with SQL joins and analytics in one database, for AI and analytical applications. # Hybrid Search Get the best of both worlds with vector and full-text search Bringing real-time to innovative teams ## High-throughput ingest and search in one engine Support your real-time search, recommendation, or AI agent workflows—vector embeddings inserted to SingleStore become immediately searchable, powered by out native vector support. SingleStore combines [competitive vector search performance](https://www.singlestore.com/blog/singlestore-matches-vector-search-performance-of-pinecone-and-zilliz/) with fast SQL analytics, joins and aggregations across petabytes of structured and semi-structured data to power intelligent applications. ## Powerful hybrid search for your analytical and AI applications Bring powerful search to your application with SingleStore's native vector and full-text search. Combine the benefits of fine-grained control provided by full-text search with semantic vector search in one easy-to-use SQL interface. SQL ```sql 1SET @query_vec =2 ('[0.44, 0.554, 0.34, 0.62]') :> VECTOR(4);3 4SELECT5    SUBSTRING(comment, 0, 20) AS comment,6    FORMAT(7 @query_vec <*> comment_embedding,8 49 ) AS v_score,10    FORMAT(11 MATCH(comment) AGAINST ("restaurant"),12 413 ) AS ft_score,14    FORMAT(15 (v_score + ft_score) / 2,16 417 ) AS total18FROM comments19WHERE category = "Food"20ORDER BY total DESC21LIMIT 10; ``` ``` +--------------------+---------+----------+--------+| comment | v_score | ft_score | total |+--------------------+---------+----------+--------+| The B24 restaurant | 0.8993 | 0.1151 | 0.5072 || The cafeteria in b | 0.9810 | 0.0000 | 0.4905 |+--------------------+---------+----------+--------+ ``` ## Native vector search support Vector search typically involves a three-way trade-off between accuracy, performance and cost. With SingleStore, you get what you need, when you need it. k-Nearest Neighbor (kNN) algorithms Approximate Nearest Neighbor (ANN) algorithms Dot product and Euclidean distance metrics IVF-PQ for low index build time and small index size HNSW for excellent recall and high dimensionality ## Lightning-fast full-text search SingleStore's full-text search is a robust search solution that leverages the Lucene library to deliver high-quality, fast search results across your data. Native support for inverted indexes Support for fuzzy search, wildcard search, proximity search, range search, and regex search SingleStore full-text search is based on the active, open-source Lucene Integrated full-text search directly with analytical queries, allowing you to combine search operations with aggregations and other SQL operations ## Fast, enterprise-grade SQL database Fast vector ingest Fast ingest for vector embeddings and new vectors makes data immediately searchable. Familiar, powerful SQL interface Execute searches in SQL with support for filters, aggregates + joins. No need to learn a new language. Scalability, performance and reliability Handle complex text and vector search queries as your data volume grows — without significant degradation in performance. ## Explore some sample code View some of our Jupyter Notebooks showing how to hybrid search works on SingleStore Notebook Hybrid Search Notebook Searching all of Wikipedia Notebook Similarity Search on Vector Data ## Real-world use cases of SingleStore hybrid search ### Sentiment analysis on employee survey responses Siemens drives sentiment analysis using vector capabilities within SingleStore to analyze and gain deeper insights into the responses from company-wide HR surveys across 200,000 employees worldwide. ### AI-driven insights for retailers with vector similarity search RightSense uses SingleStore vector similarity search on AWS to give retailers real-time insights, cutting reporting from 24 hours to 1 second. ### AI-driven video monitoring and surveillance for safety and security Lumana, a SaaS visual intelligence platform for real-time video monitoring and surveillance uses SingleStore's vector functionality to perform image and video matching to monitor occupational safety, surveillance footage and more. ## See it in action Video • Mar 18, 2025 • 4 min Part 1: Vector Search Video • Mar 18, 2025 • 4 min Part 2: Full Text Search Video • Mar 19, 2025 • 5 min Part 3: Semantic Search Video • Mar 19, 2025 • 4 min Part 4: Hybrid Search ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about how hybrid search on SingleStore works --- Source: https://www.singlestore.com/platform/data-integration/ # SingleStore Data Integration: Ingest, ETL and CDC SingleStore loads data from Kafka, Amazon S3, HDFS and Apache Iceberg tables with built-in pipelines and change data capture, with no external ETL tools. # Data Integration Native support for seamless ETL/CDC between various sources and targets ## Lightning-fast ingestion Rapid data ingestion (with optional transforms) from multiple data sources including Kafka, Amazon S3, HDFS and Iceberg tables, powered by [SingleStore Pipelines](https://www.singlestore.com/pipelines/). Continuously load millions of events per second, in parallel, natively in our platform. No external tools needed SingleStore Pipelines are robust, scalable, highly performant and support fully distributed workloads Support for JSON, Avro, Parquet and CSV data formats ## Zero ETL Drastically simplify the job of developers by monitoring a source folder or Kafka queue, automatically loading events as they arrive. Frictionless snapshot data load and Change Data Capture (CDC) from MySQL and MongoDB® with SingleStore Pipelines. Other database sources are supported with third-party tooling. ## Reduce costs Reduce or eliminate ETL tooling and data processing costs with our native solution. SingleStore also brings overall better price-performance to your tech stack, delivering up to 50% overall lower TCO. ## Natively integrate with your Apache Iceberg stack Ingest data from and write back to Iceberg tables — in real time, with no additional tooling required. SingleStore’s native integration provides super low-latency analytics on your lakehouse data. Unlock real-time insights on your data lake and commercial lakehouse data that was previously inaccessible. Automatically manage schema evolution/changes and updates, ensuring changes in Iceberg tables are reflected in your SingleStore database without manual intervention. ## Iceberg integrations ### Ingest from Iceberg tables Zero ETL ingest from Iceberg tables without requiring additional ETL tools ### External tables from Iceberg (soon) Analyze Iceberg data directly with SQL queries — without creating a local copy ### Data sharing to Iceberg (preview) Write-to-Iceberg tables with support for Glue catalog, enabling bi-directional data ## Explore sample code Check out some of our Jupyter Notebooks showing how data integration works on SingleStore Notebook Importing Data from S3 into SingleStore using Pipelines Notebook Employee Data Analysis JSON Dataset Notebook Real-Time Event Monitoring Dataset From Kafka ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about data integration on SingleStore --- Source: https://www.singlestore.com/platform/high-availability/ # SingleStore High Availability and Automatic Failover SingleStore high availability keeps mission-critical apps running with automatic failover, replication across availability zones and no setup required. # High Availability Ensure high availability for your mission-critical applications with SingleStore. ## Zero-config setup One of the design principles of SingleStore is "*no single point of failure.*" SingleStore Helios® is highly available by default — no configuration required. Your data is automatically replicated across nodes to ensure it remains available in case a node is lost. ## Automatic failover protection Your data is safe with SingleStore. We automatically detect system faults and recover from them in a matter of seconds, with zero manual intervention required. We include protections from a range of different issues including hardware, software and network. ## Thoughtfully designed high availability ### **Point-in-time recovery (PITR)** Pick an exact point in time, down to the microsecond, to restore your database with fully adjustable retention periods — ensuring the security and availability of your data, with the flexibility to manage backups based on your needs. ### **Smart disaster recovery (SmartDR)** SmartDR is a fully automated solution designed to protect your data against major regional outages — creating a continuous asynchronous replication of data between a primary and geographically separate secondary region. ## Multi-availability zone protection Data + Workload protection SingleStore can be deployed with multi-AZ failover for superior protection of your data and workload. Failure Protection Protect your data against local and regional failures including fire, natural disaster and power outages. Independent power + connections Redundancy for your data across data centers with independent power, cooling and network connections. ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about SingleStore high availability --- Source: https://www.singlestore.com/pricing/ # SingleStore Pricing: Compare Cloud and Self-Managed Compare SingleStore editions for Helios Cloud and Self-Managed, from a free Shared cluster to Standard and Enterprise plans, with support levels for each. ### Pricing: Helios Cloud ### # Find an Edition That Works for You Helios Cloud Self-Managed Select Cloud Provider Managed ## Shared For evaluation, development and non-production testing Key features: - Shared cluster - All SQL and Programmability features - Monitoring - Self-support Managed ## Standard For general-purpose production workloads Key features: - Read-replicas - All SQL and Programmability features - Database Branching - Monitoring (30-day) - 99.9% SLA (1 AZ) or 99.99% SLA (2 AZ) - Standard Support Managed ## Enterprise Enhanced DR & security for customer-facing workloads Everything in Standard, plus: - Online PITR - Smart DR - Audit Logging - CMEK - 99.9% SLA (1 AZ) or 99.99% SLA (2 AZ) ### Pricing: Self-Managed ### ## Find an Edition That Works for You Helios Cloud Self-Managed ## Standard Unit-based pricing For real-time applications and analytics with all of SingleStore's core features - Standard support - All core features - Resource governance ## Enterprise Unit-based pricing For mission-critical workloads with demanding availability, recovery and manageability requirements - Standard support - All core features - Point-in-Time Recovery - Disaster recovery - Audit logging ### Pricing: Helios Cloud ### | Helios CloudSelf-Managed | | |---|---| | Service levels + pricing | | | Hosting | AWS, Azure, GCP | | SLAs | 99.9% / 99.99% | | Support tier inclusion | Standard | | Pricing | [Starts at $0.99/hr](#pricing-calculator) | | Database engine | | | Modern relational database | | | Universal Storage | | | MySQL wire-compatible, ANSI SQL data model | | | Ultra-low latency query response | | | AI vector matching functions | | | Multi-model capabilities | | | Relational (SQL) | | | JSON | | | Time-series | | | Full-text search | | | Vector database | | | Geospatial | | | Ingest + data movement | | | Bulk load | | | Streaming data pipelines | | | Data integration tools | | | SingleStore Flow | | | Developer tools + connectors | | | MySQL Compatible & Native Drivers (ODBC, JDBC) | | | Code Engine — Powered by Wasm | | | Connectors for analytics + BI tools | | | Notebooks | | | Database Branching | | | Availability + disaster recovery | | | High availability | | | Multi-AZ failover | | | Online Point-in-Time Recovery (PITR) | | | Smart DR (Preview) | | | Legacy DR | | | Clustering + manageability | | | Management API (REST) | | | Read replicas (Clusters) | | | Resource governance | | | Bottomless Storage | | | Usage-based billing | | | Transparent updates | | | Monitoring | | | Alerts | | | Query history | | | Security + networking | | | Authenticate via JWT | | | Engine RBAC | | | Data encryption (AES_ENCRYPT) | | | Encryption of data in transit (SSL/TLS) | | | Encryption of data at rest (AES-256) | | | Single Sign-On | | | Federated authentication — SAML | | | Federated authentication — OAuth | | | Private network connections | | | Audit logging | | | Customer-managed encryption keys | | | SCIM | | ### Pricing: Self-Managed ### | Helios CloudSelf-ManagedStandard | | |---|---| | Service levels + pricing | | | Hosting | On-Premises | | SLAs | | | Support tier inclusion | Standard | | Pricing | Yearly contract[Contact for pricing](https://www.singlestore.com/contact/) | | Database engine | | | Modern relational database | | | Universal Storage | | | MySQL wire-compatible, ANSI SQL data model | | | Ultra-low latency query response | | | AI vector matching functions | | | Multi-model capabilities | | | Relational (SQL) | | | JSON | | | Time-series | | | Full-text search | | | Vector database | | | Geospatial | | | Ingest + data movement | | | Bulk load | | | Streaming data pipelines | | | Data integration tools | | | SingleStore Flow | | | Developer tools + connectors | | | MySQL Compatible & Native Drivers (ODBC, JDBC) | | | Code Engine — Powered by Wasm | | | Connectors for analytics + BI tools | | | Notebooks | | | Database Branching | | | Availability + disaster recovery | | | High availability | | | Multi-AZ failover | | | Online Point-in-Time Recovery (PITR) | | | Smart DR (Preview) | | | Legacy DR | | | Clustering + manageability | | | Management API (REST) | | | Read replicas (Clusters) | | | Resource governance | | | Bottomless Storage | | | Usage-based billing | | | Transparent updates | | | Monitoring | | | Alerts | | | Query history | | | Security + networking | | | Authenticate via JWT | | | Engine RBAC | | | Data encryption (AES_ENCRYPT) | | | Encryption of data in transit (SSL/TLS) | | | Encryption of data at rest (AES-256) | | | Single Sign-On | | | Federated authentication — SAML | | | Federated authentication — OAuth | | | Private network connections | | | Audit logging | | | Customer-managed encryption keys | | | SCIM | | ### Pricing: Helios Cloud ### ## Your estimated cloud pricing ### Cluster 1 Example estimate: Standard S-00 on AWS us-east-1 (N. Virginia), 8 hours a day, 20 days a month Monthly Credit Cost (Usage): $158.40 Monthly Storage Cost (Usage): $0.00 Monthly total: $158.40 Notes: 1. Prices provided here are estimates. [Contact us](https://www.singlestore.com/contact/) for more accurate pricing and volume-based discounts. 2. SingleStore does not charge for data ingress, but you may incur a charge from your cloud provider. 3. No credit card is needed to sign up. Your first Shared cluster is free for development and testing, and production workloads run on Standard. Standard clusters start with $500 in free credits. When the credits run out, Standard clusters are suspended until you add a payment method. ### Pricing: Helios Cloud ### Want more detailed pricing and sizing information? ### Pricing: Helios Cloud ### ## Cloud pricing examples The cost of SingleStore is determined by actual usage, which varies based on your individual application. We recommend trying SingleStore with on-demand pricing to develop and test so you can estimate monthly costs, finding the Edition that works best for your business. And, you can take advantage of our commitment pricing model when your application moves to production. ### Example #1: Learn, develop and test SingleStore Helios cloud service Let’s say a customer tries SingleStore Helios cloud service for 8 hours, 20 days a month on a S00 Standard in a Tier-1 region. For 15 days in a month, 100 GB has been stored. The rest of the month (15 additional days), 500 GB has been stored. During that month, 500 GB of data was ingested into SingleStore. Here is what your bill for that month would look like: | **Info** | **Usage** | **Billing** | |---|---|---| | **Cluster** | S00 - 8 hours x 20 days x 0.25 credits /hour = 40 credits | Cost: 40 credits x $3.96 /credit = $158.40 | | **Average storage** | (24 hours x 15 days x 100 GB + 24 hours x 15 days x 500 GB)  / (30 days x 24 hours) = 300 GB | Cost: 300 GB x $0.023 /GB = $6.9 | | **Data transfer** | Ingress: 500 GB | Cost: 500 GB (Ingress) x $0 = $0 | *Note: These examples cover database compute and storage only. Data movement or ingestion performed using third-party tools is not included in these estimates. If you choose to use SingleStore Flow for ingestion, you can calculate your Flow credit burn based on the Flow Pricing Example (Example 3).* ### Example #2: Development and production over SingleStore Imagine you have a multi-tenant application serving various customer sizes in a SingleStore Tier-2 region and have adopted the following architecture and usage pattern: | **Info** | **Cluster** | **Usage** | |---|---|---| | **Free tier tenants** | S4;  fits 2,000 tenants | Cluster up throughout the month1 GB of data ingested per day, no data deletionStarted the month with 500 GB, finishing the month with 530 GB | | **Paid tenants** | S8;  fits 100 tenants | Cluster up throughout the month 100 GB of data ingested per day, no data deletionStarted the month with 20 TB, finishing the month with 23 TB | | **Dev/test environment** | S00 for devS8 for test | S00 cluster: On  8 hours a day, 20 days a month.S8 cluster: On  4 hours a day, 5 days a month.Across clusters 500 GB of storage throughout the month. | Here is what the bill for that month looks like: | **Info** | **Usage** | **Billing** | |---|---|---| | **Cluster** | S4 (Prod) - 24 hours x 30 days x 4 credits /hour = 2,880 creditsS8 (Prod) - 24 hours x 30 days x 8 credits /hour = 5,760 creditsS00 (Dev) - 8 hours x 20 days x 0.25 credits /hour = 40 creditsS8 (Test) - 4 hours x 5 days x 8 credits /hour = 160 credits | Cost: (2,880 + 5,760 + 40 + 160) credits x $3.96 /credit = $35,006.40 | | **Average storage** | Free tenant prod. storage: 515 GBPaid tenant prod. storage: 21,980 GBDev + test storage: 500 GB | Cost: 22,995 GB x $0.025 /GB = $574.9 | | **Data transfer** | Ingress: 500 GB | Cost: 500 GB (Ingress) x $0 = $0 | ## Flow Pricing Example Below is an example of what you might expect to pay when using SingleStore Flow in Helios for a production-grade CDC workload. *Note : Flow is optional and used for data replication or ingestion workflows.* ### Example #3: Production CDC Replication with Flow This scenario illustrates continuously replicating data from another system into SingleStore using Flow. The deployment is sized at **F-3** and runs **24×7** throughout the month. During this period, Flow processes approximately **10 TB** of data, which includes both the initial load and ongoing CDC updates. **Estimated monthly usage** | **Component** | **Quantity** | **Unit price** | **Estimated cost** | |---|---|---|---| | **Flow Compute (F-3)** | 0.927 credits/hr × 730 hrs | $3.96 / credit | **$2,679.77** | | **Data processed by Flow** | 10,240 GB | $0.02 / GB | **$204.80** | ### Pricing: Helios Cloud ### ## FAQs Helios Cloud Self-Managed ### Is everything in memory? No. SingleStore utilizes memory, flash and spinning disk. SingleStore uniquely accelerates ingest and query performance with memory-optimized tables to deliver persistence with full ACID compliance, high availability and disaster recovery so your data is always accessible. ### What is the relationship between SingleStore and MySQL? SingleStore is a distributed SQL database built from the ground up for maximum performance for transactions and analytics. The SingleStore server includes its own storage engine and SQL-based execution engine built around scalable distributed execution and lock-free data structures. SingleStore and MySQL servers do not share any code, but SingleStore is compatible with MySQL client software. SingleStore uses the same wire protocol as MySQL, and supports similar SQL syntax as MySQL for easier compatibility. ### Why is SingleStore based on SQL? SingleStore is designed to support real-time applications and analytics with no unnecessary data movement or complexity. SQL is a proven, pervasively used language for writing and retrieving data. It provides rich descriptive capabilities that are interoperable with a large ecosystem of tools, is a straightforward skill to find and learn, and provides a direct way to perform powerful analytics. ### What type of support is provided? SingleStore offers 24x7 support across three support tiers: Standard, Silver and Platinum. For more information, please refer to our [support page](https://www.singlestore.com/support/). ### What services are provided in SingleStore Helios? SingleStore automatically provisions infrastructure, deploys and configures cluster software, maintains availability, provides scalability, performs backups and handles software upgrades including SingleStore, operating and system software. ### How do I know what size deployment I need? You can find specific pricing details for different deployment sizes at [https://www.singlestore.com/cloud-pricing/](https://www.singlestore.com/cloud-pricing/). ### How do I load data into SingleStore Helios? The easiest way to get data into SingleStore Helios is by uploading your dataset to Amazon S3 or Google Cloud Storage, and use SingleStore Pipelines to ingest your data quickly. To get started, check out [this guide](https://docs.singlestore.com/cloud/load-data/). ### What happens if the hardware SingleStore Helios runs on fails? SingleStore is built on a cloud-native, highly resilient architecture that features high availability within the cluster. When cloud instances fail, SingleStore transparently handles the failures, replaces instances and maintains cluster availability to the application. ### When I suspend my cluster, what am I charged for? When you suspend a cluster, we stop billing for that cluster as soon as the cluster is suspended. While the cluster is suspended, you will be charged for its storage. ### How are compute and data storage billed? Compute and storage are billed separately to make it easier for you to see the level of compute resources consumed. Clusters are metered by the second. Storage charges are only incurred for storage used, and are calculated based on the average total number of GB used per month. Object storage is allocated to SingleStore nodes, and stores node-specific data as well as columnstore tables. ### Am I charged for backup and point-in-time recovery? Backup and point-in-time recovery are charged at the standard storage rate, depending on the regional tier that you stored your data. ### Is the storage cost based on post-compression? Yes. We charge after compression which on average is 80% (e.g. 100 GB of raw data will be compressed as 20 GB on average). ### Can I purchase commitments? Purchasing commitments are a great way to save on your cluster resources compared to on-demand pricing. Contact us to learn more about commitment. ### Do I need a credit card to start? No credit card is needed to sign up. Your first Shared cluster is free for development and testing, and production workloads run on Standard. Standard clusters start with $500 in free credits. When the credits run out, Standard clusters are suspended until you add a payment method. ### What payment methods are supported? We support direct payment methods (including credit cards) but let you consume SingleStore through Google Cloud Marketplace, Azure Marketplace and AWS Marketplace. ### When do I get charged for data transfer? We do not charge for loading data into SingleStore. However, such operations might incur costs from the service you load data from. Planned built-in features like exporting or replicating data into different regions, different cloud providers or the internet will incur costs in line with the starting price band that cloud providers commonly charge. ### Pricing: Self-Managed ### ## FAQs Helios Cloud Self-Managed ### Is everything in memory? No. SingleStore utilizes memory, flash and spinning disk. SingleStore uniquely accelerates ingest and query performance with memory-optimized tables to deliver persistence with full ACID compliance, high availability and disaster recovery so your data is always accessible. ### What is the relationship between SingleStore and MySQL? SingleStore is a distributed SQL database built from the ground up for maximum performance for transactions and analytics. The SingleStore server includes its own storage engine and SQL-based execution engine built around scalable distributed execution and lock-free data structures. SingleStore and MySQL servers do not share any code, but SingleStore is compatible with MySQL client software. SingleStore uses the same wire protocol as MySQL, and supports similar SQL syntax as MySQL for easier compatibility. ### Why is SingleStore based on SQL? SingleStore is designed to support real-time applications and analytics with no unnecessary data movement or complexity. SQL is a proven, pervasively used language for writing and retrieving data. It provides rich descriptive capabilities that are interoperable with a large ecosystem of tools, is a straightforward skill to find and learn, and provides a direct way to perform powerful analytics. ### What type of support is provided? SingleStore offers 24x7 support across three support tiers: Standard, Silver and Platinum. For more information, please refer to our [support page](https://www.singlestore.com/support/). ### Which features are not preconfigured in Self-Managed? - You need to provide, deploy and manage your own hardware, OS and networking — including performing HW and OS upgrades - You need to set up your own backup schedule and run backups yourself. You may also wish to provide an external file system or object storage system as a destination for your backups, though you can back up locally on the cluster hardware. - Cross-AZ deployment for one cluster is not available for Self-Managed (where it is standard on Cloud for Premium editions). To create a cross-AZ disaster recovery-capable deployment that can survive the loss of one AZ, you will need to set up a REPLICATE DATABASE yourself. - Encrypted storage is provided by default on the cloud. For Self-Managed, you will need to use alternative approaches to encrypt storage devices like Linux LUKS, Thales Vormetric, IBM Guardium, etc. ### How do I know what size deployment I need? Some things that determine sizing are: data volume and data growth projection, query concurrency requirements and required performance SLAs. Your deployment size needs to have enough CPU, RAM and disk space to handle your workload needs. Sizing may be estimated and then tested to validate it. Fortunately, with SingleStore, it is easy to add or remove nodes and rebalance your data online, so you can adjust your sizing over time. For more accurate information on price, contact us to [request a quote](https://www.singlestore.com/contact/). ### How easy is it to install? SingleStore can be installed in minutes on any Linux compliant system. We recommend using pre-defined Cloud Formation templates to quickly deploy on AWS EC2 environments. Customers can also deploy SingleStore in single and multi-node clusters. To see all the available installation options, please read our [installation documentation](https://docs.singlestore.com/db/latest/reference/singlestore-tools-reference/singlestoredb-studio/singlestoredb-studio-installation/). ### What is included in the free version of SingleStore Self-Managed? SingleStore offers a free Developer Image which can be used for testing or local development. This image cannot be used for production workloads, and there are no time restrictions on usage. ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/solutions/ai/ # SingleStore for Enterprise AI: One Database for AI Apps SingleStore is a database for enterprise AI: vector and full-text search, analytics and transactions in one engine, so AI apps answer from current data. # The database for enterprise AI apps and agents SingleStore runs transactions, analytics, and vector and full-text search in one engine, so AI apps and agents answer from current data. Running in production at ## Where an AI database fits beside your ERP and warehouse Enterprise data architectures answer three questions, and each needs a different kind of system. ### The ledger of what happened The ERP, the core banking system and the billing ledger hold the authoritative record of every transaction. They change slowly by design, and they stay where they are. ### Analysis across years of history A warehouse or lakehouse answers questions about last week, last quarter and last year. It loads on a schedule, often hourly or overnight, which suits reporting and planning. ### Decisions on current data An AI agent approving a refund, or a fraud model scoring a payment, has to read the current state and write its result back while the customer waits. Without a database built for that job, teams split the work across the other two systems and connect them with pipelines. Each pipeline copies data out of the operational database, and each copy trails the source by minutes or hours. SingleStore is the database for the third job. It runs beside your system of record and your warehouse, with transactions, analytics and vector search on one copy of the data. ## A database built for AI workloads No ETL, no complex data pipelines – combine transactions, analytics, and vector search on a single, unified platform. Get unlimited scalability and low-latency access to shared data with separation of storage and compute. One unified platform to power your whole workload Incredible speed on huge amounts of data Unified vector and full-text search ## Vector and full-text search in one engine Build smarter applications like recommendation engines and sentiment analysis without complex systems or third-party providers. Run high-throughput ingest and search in one engine, and build AI applications on current data. Vector embeddings inserted to SingleStore become immediately searchable. ## Lightning-fast response times for your AI apps Run analytics on operational data as it changes, in the same engine that takes the writes. SingleStore’s engine brings [millisecond response times](https://www.singlestore.com/platform/ultra-fast-queries/) on billions of rows of data, bringing astounding speed and instant insights to your customers. [Integrate directly](https://www.singlestore.com/platform/data-integration/) with a wide range of data sources and connectors, get easy ingestion/ETL/CDC capabilities from diverse data systems and formats including Kafka, HDFS and cloud storage (Amazon S3). ## Designed for enterprise AI Rest easy knowing that your mission-critical AI workloads are powered by SingleStore. Keep your data secure with our comprehensive internal [privacy compliance framework](https://www.singlestore.com/security/) and industry-leading security certifications including **ISO 27001**, **SOC 2 Type 2**. Get ultimate peace-of-mind with SingleStore’s [high availability](https://www.singlestore.com/platform/high-availability/) by default, keeping your most critical workloads online. We’re [built for scale](https://www.singlestore.com/solutions/scale/). Some of the largest companies in the world power their mission-critical applications using SingleStore. ## Ship your apps faster with a unified AI stack ### Agentic workflows Leverage vector and full-text search, deploy serverless APIs that run close to your data, dynamically call tools implemented as cloud functions (e.g., hybrid search, web search), and run queries on billions of rows in milliseconds, all on one unified platform. ### AI database Store billions of embeddings and query them with sub-second response times while also handling your OLTP and OLAP workloads. Combine full-text and vector search with our hybrid indexing to get precise results without managing separate databases or batch jobs. ### Applications Deploy lightning-fast AI apps with our unique combination of transaction and real-time analytics in one platform. Build, test and ship AI-powered features in hours rather than weeks with one-click Python notebooks and auto-generated REST endpoints. ### Generative AI With native support for vectors, you can store embeddings of your documents, images, and code in real time and stream them to any LLM with minimal latency. Power chat, content creation, and code generation workflows with fresh data on demand. ## SingleStore Helios, managed or in your own environment ### Fully managed with SingleStore Helios SingleStore Helios® is the managed cloud service: SingleStore runs the database on AWS, Microsoft Azure or Google Cloud, and your team connects to a workspace. ### Self-managed in your own environment Run the same database on premises, on Kubernetes or in your own cloud account. Teams choose this when the data an AI app needs is not allowed to leave their environment. ## Connect AI assistants and coding tools to SingleStore over MCP The SingleStore MCP server connects AI assistants and coding tools, including Claude Desktop, Claude Code, Cursor, Visual Studio Code, Windsurf and Gemini CLI, to a SingleStore database. The assistant reads the real schema, runs SQL and works with current data, so its answers and the code it writes fit the database it runs against. Assistants connect under ordinary database roles: each reaches only the tables its role allows, and every query it runs appears in query history. Applications connect over the MySQL wire protocol or the HTTP Data API. ## How SingleStore powers your AI apps Performance + scalability Handle millions of transactions and analytics queries per second on a single platform, with on-demand scale out and zero downtime rebalancing. Vector search on live data Run sub-second similarity queries across billions of embeddings to power recommendations, semantic search, and retrieval applications. Notebook-first development Launch a hosted Jupyter environment preconfigured to your data so data scientists can explore, prototype and iterate in minutes. Unified data + AI workloads Keep relational data, time series and embeddings together in one AI database to eliminate ETL delays and simplify your architecture. Automated API endpoints Generate REST or GraphQL interfaces for any query or model inference with a click, removing the need for custom service layers. Enterprise-grade security Enforce role-based access control, TLS encryption and auditing across all your data and AI services to meet compliance requirements. Hardware acceleration Get fast, efficient similarity matching with built-in parallelization and Intel Single Instruction Multiple Data (SIMD)-based vector processing. Rowstore + columnstore SingleStore's Universal Storage brings together the fast table scan performance of a columnstore and the selective seek performance of rowstore. Separation of storage and compute Scale storage + compute independently while maintaining real-time access to shared data with SingleStore Workspaces Samira Golsefid, Ph.D. VP of Data Science, 6sense > Building AI solutions is a journey. If you have to worry about all the mechanics it can be very difficult; but if you have a capable partner like SingleStore you can focus on your goals instead of data logistics. This is a long-standing relationship that has helped us reduce our computation costs and increase our performance 5x. It is less customer-provider and actually a PARTNERSHIP. ## How enterprise teams use SingleStore Case Study Fortune 25 Financial Services Giant Gains Vector Insights on Petabytes of Data with SingleStore Case Study Armis Saves 70% of Data Pipeline Cost with SingleStore and AWS, Grows Valuation to $3.4B Case Study Arcules Optimizes Video Surveillance and Analytics to Scale Globally Case Study Siemens is Driving Sentiment Analysis Using Vector Capabilities on SingleStore Case Study RightSense Uses SingleStore Vector Similarity Search on AWS to Ring Up AI- driven Actionable Insights for Retailers Case Study MonitorBase Uses Real-Time Vector Data from SingleStore to Make Every Contact Count in the Mortgage Market ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read customer stories Learn how our customers power their workloads with SingleStore --- Source: https://www.singlestore.com/solutions/retrieval-augmented-generation/ # Retrieval Augmented Generation (RAG) With SingleStore Retrieval augmented generation adds your enterprise data to LLM prompts. Learn how RAG works and how to build RAG apps on SingleStore with vector search. # Retrieval Augmented Generation (RAG) Build modern gen AI apps utilizing 
the RAG framework ## What is Retrieval Augmented Generation (RAG)? RAG is a technique to retrieve data from outside a foundation model by injecting the relevant, curated enterprise data into prompts before it's sent to a public or private LLM. RAG is more cost effective and efficient than pre-training or fine-tuning foundation models. It is one of the techniques used for “grounding” LLMs with information that is use-case specific and relevant, ensuring the quality and accuracy of responses — which is critical to reducing hallucinations in LLMs. With a performant vector database together with an enterprise-grade data platform, SingleStore makes it easy and efficient to build modern gen AI applications utilizing the RAG framework. An enterprise-grade database with vector capabilities is critical to implement RAG. In this approach, the relevant enterprise data can be vectorized and stored in a database like SingleStore. You can also easily bring in transactional data feeds or analytical data from diverse sources into SingleStore, using it to power your generative AI application. Read: [Why Your Vector Database Should Not be a Vector Database](https://www.singlestore.com/blog/why-your-vector-database-should-not-be-a-vector-database/) When a user puts in a question, it is first matched against the curated enterprise data in the database using semantic and hybrid search. Similar matching results are added to the user prompt, which is then sent over to the LLM (like GPT-4 or Llama2.0) for an accurate response based on the enterprise data. Read: [Getting Started with OpenAI Embeddings + Semantic Search](https://www.singlestore.com/blog/getting-started-with-openai-embeddings-search-singlestoredb/) ## Key steps on how RAG works For RAG in an enterprise setting, you utilize a data store with vector capabilities, since LLMs may require information to be retrieved from various unstructured and structured data sources within the enterprise. ### Step 1: The question #### Questions or prompt This is the first time in the interaction the user asks a question with the prompt for the chatbot. The prompt may contain a brief description of what the user expects in the output. ### Step 2: Contextual search #### Querying SingleStore This is the most crucial step, where the question is vectorized and a semantic or hybrid search is carried out in real time to match and filter related documents or data within the enterprise. This may include querying SingleStore as the vector and relational database, searching a set of indexed documents based on a keyword or invoking an API to retrieve data from remote or external data sources. ### Step 3: Similarity matching #### Millisecond extractions In this step, the context and information relevant to the question are extracted from the curated enterprise datasets within SingleStore using fast semantic and hybrid search. External data sources (including other transactional and analytical data) can be brought in as well. Results are then filtered, re-ranked and sent back to the gen AI application. All of this needs to happen in milliseconds to provide a seamless customer experience. ### Step 4: Prompt augmentation + inference #### Increased accuracy Once the context is generated, it’s injected into the original prompt to augment before it's sent to an LLM. The LLM receives a rich prompt with the additional context and the original query sent by the user — significantly increasing the model’s accuracy because it can access factual data. ### Step 5: LLM response #### Factually correct info The LLM sends the response back to the chatbot with factually correct information and relevant context added on. ### Step 6: Chatbot response #### Response to the user The gen AI app or the conversational chatbot then formats the information, passing the response back to the user in near-real time. ## Get started with RAG + SingleStore Get started with quickstart modules and Notebook templates for RAG at SingleStore Spaces ## RAG x SingleStore **Guide**A Beginner's Guide to Retrieval Augmented Generation (RAG)[Get the guide](https://www.singlestore.com/blog/a-guide-to-retrieval-augmented-generation-rag/) eBookAgentic RAG with SingleStore [Read more](https://www.singlestore.com/blog/agentic-rag-with-singlestore/) ## Global leaders trust SingleStore Bringing real-time to the real world ## Additional resources Industry Report Using ChatGPT for Questions Specific to Your Company Data Blog Getting Started with OpenAI Embeddings Search & SingleStore Blog Generative AI: An Absolute Beginner’s Guide to LlamaIndex Webinar Build a ChatGPT App on Your Own Data ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/real-time-analytics/ # SingleStore: Real-Time Analytics Database for Apps SingleStore is a real-time analytics database for in-app analytics and BI dashboards on streaming data, serving interactive queries to many users at once. # Real-Time Analytics Power real-time, interactive applications ## In-app analytics, in real time ### From customer-facing applications to supply chain analytics, fraud, IoT, cybersecurity, retail and more, modern applications demand interactive analytics on real-time data as it streams in. And these analytics need to be served within an application (in-app analytics) at speed, or using BI dashboards. Yet legacy data platforms can’t handle fast-moving, fast-changing data streams. They simply weren’t designed to keep up with data as it lands. Bringing streaming ingestion together with extremely fast writes, analytics and AI/vector capabilities in a single data platform, SingleStore powers real-time applications with analytics, without the need for ETL or data movement. #### E-commerce store example ## Application with in-app analytics ## Building real-time applications + analytics with SingleStore ### Streaming data ingestion [High throughput, parallel](https://www.singlestore.com/blog/how-to-load-100-billion-rows-of-data-ultrafast/), lock-free streaming ingestion – up to millions of events per second – from diverse data sources including Apache Kafka, blob stores (S3, Azure blob storage, GCS) or HDFS. #### Low-latency performance
for complex queries Millisecond query performance that matches the performance of top data warehouses on popular analytical benchmarks, including those derived 
from [TPC-H and TPC-DS](https://www.singlestore.com/blog/tpc-benchmarking-results/). #### Multi-model hybrid queries Drive blazing-fast analytics on more than just relational data by combining [JSON](https://www.singlestore.com/blog/accessing-json-data-at-warp-speed-in-singlestoredb-/), [time-series](https://medium.com/@VeryFatBoy/using-singlestore-as-a-time-series-database-6517a1a36a4e), [vector](https://www.singlestore.com/blog/why-your-vector-database-should-not-be-a-vector-database/), full-text search, geospatial and more. MongoDB® Pipelines also replicate MongoDB® collections into SingleStore, so you can analyze that data with SQL. #### Three-tiered storage Our [Universal Storage](https://www.singlestore.com/blog/memsql-singlestore-then-there-was-one/) format brings together the fast table scan performance
of a columnstore and the selective seek performance of rowstore index, together with cloud object storage. #### Unified architecture SingleStore [unifies transactions and analytics](https://www.singlestore.com/blog/the-recipe-for-a-singlestore-database/) in the same engine to deliver high-performance analytics on operational data in real time — without the need for data movement. #### Separation of storage and compute Get [unlimited storage](https://www.singlestore.com/blog/the-future-is-bottomless/) with [high availability](https://docs.singlestore.com/cloud/getting-started-with-singlestoredb-cloud/about-singlestoredb-cloud/high-availability/) and effortlessly scale compute resources independent of storage to meet the needs of any workload. ## Test drive SingleStore Enjoy the ultra-high performance and elastic scalability of SingleStore. ## Across industries and verticals, the need for real-time applications and analytics is constantly growing. ### Portfolio analytics Real-time interactive portfolio analytics and wealth management ### IoT analytics Ingesting and analyzing IoT event or video streams for anomaly detection ### Cybersecurity Real-time ingestion and analytics on security event streams ### Supply chain analytics Using real-time sensor data with predictive analytics to power the future of connected supply chains ### Algorithmic trading Powering trading platforms and crypto-exchanges with time-series data and ultra-fast analytics ### Customer analytics Real-time sentiment analysis, targeted offers and recommendations SingleStore demo ## Real-time marketing offers + analytics Follow along with this demo based on location, purchase and request history from millions of simulated subscribers for a hypothetical service company. ## Accelerating your data warehouse with SingleStore Leading organizations augment their legacy or cloud data warehouses with SingleStore as the fast layer to drive ultra-fast analytics and power modern data applications. [Download eBook](https://www.singlestore.com/resources/solution-briefs-data-warehouse-augmentation-with-singlestore/) **20-100x faster time-to-insights** High throughput parallel streaming ingestion together with super
low-latency queries **Run apps + analytics efficiently** Get ultra-fast analytics and applications directly on SingleStore without data movement, while lowering costs. **Up to 50% lower costs** Accelerate your data warehouse to deliver better price performance and overall lower TCO (up to 50%) with SingleStore. ## Global leaders trust SingleStore Bringing real-time to the real world ## Additional resources Blog What Is a Real-Time Analytics Database? Blog Why You Need a Real-Time Analytics Database Blog The Technical Capabilities Your Database Needs for Real-Time Analytics ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/financial-services/ # SingleStore for Financial Services: Real-Time Analytics Banks and trading firms use SingleStore to ingest, query and serve live data to thousands of users at once, for portfolio dashboards, analytics and risk. # SingleStore is built for Financial Services Access to real-time data gives banks, asset managers, analysts and advisers a leg up. Leading banks and trading firms leverage SingleStore to ingest, query, and serve data to thousands of simultaneous users. ## Portfolio Dashboards Sub-second refresh of dashboards with real-time data, including multiple tables and charts High-net-worth investors have large portfolios with hundreds to thousands of positions. The performance of SingleStore allows sub-second refresh of a dashboard with real-time data, including multiple tables and charts, even for large portfolios. This provides first-class service for these clients. This in turn drives up their satisfaction, improves customer retention and facilitates portfolio growth. And that yields improved profits and growth for SingleStore customers. **20-100x faster time-to-insights** High throughput parallel streaming ingestion together with super
low-latency queries **Fast** Parallelized data ingestion from S3, Kafka, HDFS and Iceberg tables **Drop-in Compatibility** Leverage existing tools and skills using standard SQL, connectivity, and hardware ## Portfolio Analytics Investigate investment alternatives seamlessly without troublesome pauses Portfolio managers work with hedge funds, sovereign wealth funds, endowments, bond management institutions, or investment banks. They manage up to tens of thousands of positions. Their satisfaction with their analytical applications rises as its response time drops to sub-second. Analytics applications built on SingleStore allow them to investigate investment alternatives seamlessly without troublesome pauses. This allows them to make better investment decisions, giving a return on investment to their institutions that easily justifies the purchase of SingleStore. ### Fast SQL Vectorized and compiled query performance deliver reliable sub-second response ### Scale-out Architecture Deliver performance as user concurrency grows on industry-standard hardware ### Stream Ingestion Discover insights on fast changing data with real-time ingestion Test drive it today ## Experience the full power of SingleStore — without a payment commitment ## Risk Analysis Use high-speed joins of position risk, index and fund composition, and risk factors to calculate overall risk in real time Increased regulations after the financial crisis, including the Dodd-Frank Act and Basel III, as well as self-interested vigilance against excessive risk, have caused major financial institutions to carefully study and track their risk profile. Institutions want to track risk measures for their own portfolios, trading departments, funds they offer, and individual client portfolios, in real-time. Customers have built SingleStore solutions to track portfolio risk using highspeed joins of position risk, index and fund composition, and risk factors. ### Accurate Risk Calculations Real-time data ingestion with SQL access ensures calculations are performed on latest events ### Scalable SQL Risk calculations performed in-database with SQL instead of hard-to-maintain application code ### Interoperable Architecture Drop-in compatibility using standard SQL, hardware, and interfaces provides seamless integration ## Customer Benefits ### US Top 10 Wealth Management Service #### Real-Time Dashboards Sub-second interactive response allows more thorough analysis to discover and act without delays #### Sophisticated Analytics Run more analytical scenarios per day across fresh and historical data to uncover new opportunities #### Fresh Accurate Insights Real-time data provides SQL access to the most accurate customer view ### Global Investing Banking Firm #### Real-Time Pattern Recognition Run pattern recognition queries on fast-changing data to minimize compliance risk #### Millisecond Query Response Perform complex analysis with low latency queries for continuous identification of compliance exposure #### On-Demand Risk Analysis Perform on-demand risk analysis without impacting operational database systems for cost-effective reporting ## Real-Time Fraud Prevention Identify outliers where loan officers and applicants match on characteristics like location or last name In this era of global finance, vigilance against fraud is more important than ever. Our customers have successfully used SingleStore to build anti-fraud applications. For example, in lending, extreme measures are required to prevent fraud where a loan officer authorizes credit to a friend or relative who is not a qualified borrower. SingleStore enables this application with fast distributed parallel SQL query capability and spatial data management. ### **Customer Benefits** #### Insider Threat Detection Screen every potential loan interactively to detect and score possible insider fraud #### Compliance Optimization Prevent damaging publicity, fines, and loan defaults with real-time analytics #### Improved Customer Experience Approve loan transactions on fresh accurate data to provide a superior customer experience ### Real-Time Threat Detection Apply sophisticated threat detection queries on live data to identify threats in real time ### Fast SQL Fast parallel query processing with vectorization and compilation delivers sub-second response ### Scalable Analytics Fraud prevention logic runs in the database as standard SQL, reducing development time ## Financial resources eBook Powering Data-Driven Innovation in Fintech Webinar An Introduction to SingleStore for Financial Services - On Demand Webinar Real-Time AI for FinTech: Building a Stock Market Advisor Chatbot Case Study MonitorBase Uses Real-Time Vector Data from SingleStore to Make Every Contact Count in the Mortgage Market Webinar LLMs in Banking - Predictive Analytics for Financial Services Webinar Intelligent Automation, Machine Learning, and Real-Time Analytics for Consumer Growth at Financial Institutions Webinar Fast Analytics for Financial Services Webinar Powering Portfolio Management with Real-Time Analytics ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/clickhouse/ # SingleStore vs. ClickHouse: Analytics Plus Transactions SingleStore vs. ClickHouse: both run fast analytics, and SingleStore also handles the transactions and live updates an application needs, in one database. # SingleStore vs. ClickHouse Get a real-time data warehouse without limits. ## What is ClickHouse? ClickHouse is a real-time data warehouse and open-source database. Its column-oriented structure is designed for analytical (OLAP) processing, which makes it a popular choice for large, structured data sets. It performs well for analytical-only workloads, and falls short when an application also needs transactions, single-row retrieval, JSON or joins across distributed tables. ## What you need in a real-time data warehouse ### Low-latency streaming writes Stream writes to the database in real time, with sub-second responses. #### Upserts Combined update and insert operations, with a unique key that prevents duplicate records. #### Incremental deletes Delete records in near real time and keep analytical queries in sync with the primary database. #### Comprehensive JSON support Query, index and expand nested JSON at any depth, with a schema you can change after setup. #### Separation of compute and storage Better durability, manageability, elasticity and cost than traditional on-premises analytical processing. #### Performant joins Combine large, fast-changing data from multiple sources without significant latency. ## When ClickHouse fits, and when it misses | | SingleStore | ClickHouse | |---|---|---| | Transactions | ACID transactions alongside analytics. | Best for strictly analytical data sets. | | Modifying data | Upserts and incremental deletes in near real time. | Best when data does not need to change. | | Row retrieval | Fast single-row lookups next to scans. | Not built to find and retrieve single rows. | | Analytics at scale | Distributed joins across large, fast-changing tables. | Joins across large distributed data sets are a weak spot. | | Semi-structured data | Comprehensive JSON support. | Less mature support for JSON and unstructured data. | ## Customers using SingleStore ### Batch to real-time reporting Modernizing its Teradata enterprise data warehouse to move from batch updates to real-time streaming reports. [Read the case study](https://www.singlestore.com/made-on/dell-prism/) #### Algorithmic trading on every trade and market data field Proof Trading ingests 500,000 records per second on AWS for its institutional equities trading platform and cut total cost of ownership 70%. #### A full real-time data warehouse Migrating to SingleStore as a full real-time data warehouse after struggling with Hadoop performance. [Read the case study](https://www.singlestore.com/made-on/impact/) ## SingleStore and ClickHouse benchmarks SingleStore vs. ClickHouse ingestion rate (higher is better) SingleStore vs. ClickHouse retrieval speed ## How to augment your existing infrastructure for a real-time data warehouse ## Global leaders choose SingleStore ## Additional resources Blog Designing a Real-Time Data Warehouse Blog How We Built Our Real-Time Digital Marketing App Blog Choosing Your Next Database ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/snowflake/ # SingleStore vs. Snowflake: Analytics on Live Data SingleStore vs. Snowflake: one engine for transactions and analytics on live data, so applications query it without a separate operational database. # SingleStore vs. Snowflake ## Analytics on live data, not loaded data Snowflake is a cloud data warehouse built for analytics on data you load into it, with elastic compute and a deep ecosystem. But serving an application means a separate operational database and pipelines moving data in and back out. SingleStore runs transactions and analytics in one engine on live data, so applications and AI query what is true right now. ## SingleStore: one engine where Snowflake needs a stack ### Live data Snowflake analyses data after it is loaded. SingleStore ingests from Kafka, S3 and change-data-capture and makes every row queryable the instant it commits — including by millisecond point reads, not just scans. #### Transactions and serving A warehouse is not built to serve an application. SingleStore runs ACID transactions and millisecond point reads in the same engine, so it is the operational database behind the app, not only its analytics store. #### Concurrency Warehouse concurrency scales by adding compute. SingleStore serves the many small, concurrent queries an application generates at millisecond latency, built in. #### Cost and simplicity One engine on one copy of live data removes the separate operational database, the load pipelines and the reverse-ETL a warehouse architecture needs — fewer systems to run, secure and keep in sync. ## Teams that chose SingleStore over Snowflake ### 10-second queries, now sub-second impact.com evaluated BigQuery, Cloudera, Snowflake and SingleStore, then moved 100% of its reporting onto SingleStore — now managing 6 PB with more than 1,000 concurrent users. ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog Data Warehouses, Lakes, Lakehouses and Hubs Blog SingleStore vs. the Classic Data Stack Blog Choosing Your Next Database ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/databricks/ # SingleStore vs. Databricks: Serving Beside the Lakehouse SingleStore vs. Databricks: a lakehouse for batch data engineering and ML, and a database that serves applications and AI in milliseconds beside it. # SingleStore vs. Databricks ## The real-time serving layer the lakehouse hands off Databricks is a lakehouse built around Spark for large-scale data engineering, analytics and ML — excellent for batch and training. But serving an application means millisecond, high-concurrency queries on live data, a different job. SingleStore serves applications and AI directly, and the two are often complementary: Databricks for batch and ML, SingleStore for the serving layer in front of it. ## SingleStore: the serving a lakehouse can’t do ### Real-time serving Databricks is optimised for processing large datasets, not for serving millisecond queries to an application. SingleStore serves applications and agents directly, with ACID transactions and point reads on live data. #### Transactions on live data The lakehouse is built around Delta tables and batch or streaming jobs. SingleStore is the operational database behind the app, on data that is current the moment it commits. #### High concurrency, low latency Databricks scales clusters and SQL warehouses for large jobs and BI. SingleStore serves the many small, concurrent queries an application generates at millisecond latency. #### Complementary, not either-or Keep Databricks for batch and ML — SingleStore ingests its output through Pipelines and serves it to the application in real time. ## Real-time serving beside the lakehouse ### 24 hours to 1 second RightSense processes inbound data in Databricks and serves it from SingleStore in real time — reporting dropped from 24 hours to 1 second, saving 1–2 full-time engineers. #### 1M rows/sec, 5,000 concurrent queries SegMetrics ingests 1 million rows per second and serves 5,000 concurrent queries at about 200ms for customer-journey analytics. ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog Real-Time Data Platforms: SingleStore vs. Databricks Blog Data Warehouses, Lakes, Lakehouses and Hubs Blog Choosing Your Next Database ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/elasticsearch/ # SingleStore vs. Elasticsearch: Search and SQL Analytics SingleStore vs. Elasticsearch: full-text search plus SQL joins, aggregations and real-time analytics in one database, without a separate search cluster. # SingleStore vs. Elasticsearch ## A faster analytics engine Analytics engines like Elasticsearch are designed to store, manage and process large amounts of data for fast search and querying. Yet the underlying structure of Elasticsearch, a NoSQL engine, limits how deep you can go into your analytics, and it is not built for the real-time analytics you need to make fast decisions on your data. ## SingleStore: an analytics engine that goes where Elasticsearch can't ### Scale With Elasticsearch, adding nodes to a cluster brings performance issues. SingleStore adapts to varying workloads and scales horizontally. #### Multi-model workloads The pain of Elasticsearch grows with scale and analytical complexity. A hybrid OLAP and OLTP database like SingleStore handles the joins and aggregations analytics needs. #### Simplicity The Elastic stack (Elasticsearch, Logstash, Kibana and Beats) is often used with a large data warehouse. SingleStore runs complex workloads, including SQL, JSON and vector, without that stack. #### Cost Slow analytics, limited concurrency and stack complexity raise costs. SingleStore removes the extra pieces and what they cost to run. ## Saying goodbye to Elasticsearch, and hello to SingleStore ### 1.8 seconds for complex queries Replacing Elasticsearch for simpler analytics and less data flattening, better price performance and faster queries. #### 70% savings on data pipeline costs Moving a data pipeline, Elasticsearch included, that cost more than $1 million to SingleStore, reducing cost while handling 100 billion events per day. #### 70x faster search publica.la replaced MySQL, PostgreSQL and Redis with SingleStore for its digital-content storefronts and serves 120,000 queries a minute. ## A real-time analytics engine for real-time applications ## Global leaders choose SingleStore ## Additional resources Blog Exploring AI-Powered Search: Elastic's Zero-Shot Approach vs. SingleStore's Flexible Integration Blog Elastic's OLAP Weaknesses Blog Choosing Your Next Database ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/postgresql/ # SingleStore vs. PostgreSQL: Distributed SQL for Analytics SingleStore vs. PostgreSQL: distributed SQL for transactions and real-time analytics on live data, without read replicas, extensions or a separate warehouse. # SingleStore vs. PostgreSQL ## Postgres for the app, then replicas, extensions and a warehouse for the rest PostgreSQL is the default for transactional applications, and for good reason. At scale, real-time analytics on that data forces read replicas, extensions and often a separate warehouse, each adding lag and operations. SingleStore keeps familiar SQL and adds a distributed, hybrid engine: transactions and analytics on one copy of live data, with native vector and full-text search for AI. ## SingleStore: distributed SQL for transactions and analytics ### Hybrid workloads in one engine A rowstore for fast reads and writes and a columnstore for analytics, together called Universal Storage, handle concurrent OLTP and OLAP in one system, with no separate warehouse and no read replicas for reporting. #### Distributed scale-out A distributed, shared-nothing architecture scales across nodes as data and concurrency grow, where single-node PostgreSQL scales up and then has to be sharded by hand. #### Real-time analytics without replicas Dashboards and in-product analytics run on live operational data at high concurrency, so reporting reflects the latest write instead of a lagging replica or a batch load. #### Native vector and full-text search Embeddings and keyword search are built into the engine, so AI features and RAG run next to the operational data, with no bolt-on extension or separate index. ## Teams that outgrew PostgreSQL ### $60,000 saved per month A customer moved analytics off AWS RDS and Druid to SingleStore and cut infrastructure cost by $60,000 a month, consolidating an operational database and a separate analytics store into one engine. ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog 5 Signs Your PostgreSQL Database Is Hitting Its Performance Limits (and How SingleStore Can Help) Blog Understanding PostgreSQL’s Data Fragmentation Problem, and How SingleStore Is Better Blog Database Benchmark: MySQL vs. PostgreSQL vs. SingleStore Performance (100M+ Records) ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/mongodb/ # SingleStore vs. MongoDB: SQL Analytics on JSON Data How SingleStore compares with MongoDB: JSON and SQL in one engine, with real-time analytics, millisecond serving and native vector and full-text search for AI. # SingleStore vs. MongoDB ## SQL analytics and AI search on live document data MongoDB® is a strong document database for flexible, fast-changing application data. Analytics on that data usually means SQL joins and aggregations, and AI features mean vector search, so the work gets pushed to a second system. SingleStore keeps the JSON flexibility and adds full SQL, real-time analytics, and native vector and full-text search in one engine, so an application, its analytics and its AI all run on the same live data. ## SingleStore: documents, SQL and AI search in one engine ### Documents and SQL together Store JSON and query it with full SQL joins and aggregations, with no export to a separate analytics store. For data already in MongoDB®, MongoDB® Pipelines replicate the collections into SingleStore so you can analyze them with SingleStore SQL. #### Real-time analytics on live data A columnstore runs analytical queries on operational data as it commits, so dashboards and in-product analytics reflect the latest write, with no nightly load into a warehouse. #### Native vector and full-text search Embeddings and keyword search live in the same engine as the records, so one SQL query combines vector similarity, full-text relevance and filters for RAG and agents on current data. #### One engine, fewer moving parts Transactions, analytics, JSON, vector and full-text in one distributed SQL database remove the separate analytics store and the pipeline that keeps it in sync. ## Teams that chose SingleStore over MongoDB ### Real-time event-to-dashboard analytics A global digital-industrial company added real-time ingestion and SQL on operational data with SingleStore, opening HDFS data to BI tools and high-performance joins across new sources. ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog FAQs for MongoDB® Developers Migrating to SingleStore From a Sharded MongoDB Deployment Blog Case Study: Customer Saves $60K per Month on Move from AWS RDS and Druid.io to SingleStore Blog SingleStore Improves Financial Operations for a Major Oil and Gas Company ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/pinecone/ # SingleStore vs. Pinecone: Vector Search Plus SQL Pinecone vs SingleStore: a managed vector database compared with one database for vectors, full-text search, SQL analytics and transactions on live data. ## Capability comparison: SingleStore vs. Pinecone ### PERFORMANCE Ingestion throughput and query performance | Critical capability | SingleStore OLTP, OLAP, vector capable | Pinecone Vector database | |---|---|---| | Ingestion performance | SingleStore Radian Pipelines offer streaming, parallelized data ingestion with optional transforms from multiple data sources like Amazon S3, Kafka, HDFS and Iceberg. Freshly ingested data is immediately queryable. | Pinecone supports inserting vectors in batches of 100 vectors or fewer with a maximum size per upsert request of 2MB. Pinecone cannot perform reads and writes in parallel, so writing in large batches can impact query latency and vice versa. | | Query performance | SingleStore supports low-latency (~10s of milliseconds) on complex queries (involving aggregates, joins, filters, etc.) | Not applicable. Pinecone cannot be used for analytical queries on relational data. For vector-only workloads, Pinecone's performance is on par with other vector-only databases. | | High concurrency | SingleStore's distributed SQL architecture can scale to thousands of concurrent user sessions | Information about Pinecone's access concurrency is not available. | ### Functionality Build quickly | Critical capability | SingleStore OLTP, OLAP, vector capable | Pinecone Vector database | |---|---|---| | **Multi-model** | ⬤ | ⭘ | | | In addition to relational data, SingleStore supports JSON, vectors, text, time-series, geospatial and key-value data. Notably, SingleStore does not support graph data — however it supports Recursive CTEs that can be used to query hierarchical data using standard SQL. | Pinecone can store vector embeddings. It is not a multi-model database. | | **Notebooks** | ⬤ | ◒ | | | SingleStore includes native Notebooks that allow developers and data scientists to easily write and collaborate on SQL or Python code. | Pinecone does not include native Jupyter notebooks. | ## Capability comparison: SingleStore vs. Pinecone ### **Performance** Ingestion throughput and query performance SingleStore - OLTP, OLAP, vector capable - **Ingestion performance** SingleStore Radian Pipelines offer streaming, parallelized data ingestion with optional transforms from multiple data sources like Amazon S3, Kafka, HDFS and Iceberg. Freshly ingested data is immediately queryable. - **Query performance** SingleStore supports low-latency (~10s of milliseconds) on complex queries (involving aggregates, joins, filters, etc.) - **High concurrency** SingleStore's distributed SQL architecture can scale to thousands of concurrent user sessions Pinecone - Vector database - **Ingestion performance** Pinecone supports inserting vectors in batches of 100 vectors or fewer with a maximum size per upsert request of 2MB. Pinecone cannot perform reads and writes in parallel, so writing in large batches can impact query latency and vice versa. - **Query performance** Not applicable. Pinecone cannot be used for analytical queries on relational data. For vector-only workloads, Pinecone's performance is on par with other vector-only databases. - **High concurrency** Information about Pinecone's access concurrency is not available. --- Source: https://www.singlestore.com/migrating-from-mysql-to-singlestore/ # Migrate From MySQL to SingleStore Migrate from MySQL to SingleStore to scale past a single node and run real-time analytics on application data. Book a demo with a SingleStore engineer. # Migrate from MySQL to SingleStore in Minutes Modernize your legacy, single-node database. ## If you're running into performance bottlenecks, scalability challenges or the inability to handle modern, real-time analytics workloads with MySQL, it's time to consider SingleStore. ### SingleStore’s unified database combines the best of traditional transactional (OLTP) databases with modern analytics (OLAP) capabilities, making it the ideal choice for businesses looking to modernize their data infrastructure. ## Why MySQL shouldn't be your SQL database Unlike part one, this SeQueL is better. **Performance at scale**MySQL’s InnoDB (the default engine) uses row-level locking, which generally improves concurrency but encounters DEADLOCK or lock contention under heavy workloads.SingleStore’s distributed architecture delivers high-performance SQL analytics on large datasets, enabling sub-second query times — even at scale. **Unified workloads**SingleStore supports Hybrid Transactional/Analytical Processing (HTAP), allowing you to run transactional and analytical workloads on the same data — no need for unnecessary data movement or complex ETL pipelines **Real-time analytics**Where MySQL requires additional tools for real-time analytics, SingleStore offers native real-time capabilities, ensuring low-latency insights for time-sensitive applications. **Built for modern applications**While MySQL may not natively support advanced geospatial features, built-in machine learning, or vector data types for AI, SingleStore provides powerful JSON and geospatial functionality, robust machine learning integration support for vector data types and seamless data streaming. These capabilities empower developers to build truly intelligent, data-driven applications. **Scalability without limits**MySQL’s core scalability option Replication (master → replica) is complex and tricky to manage for automatic failover, data consistency and ensuring up-to-date replicas. SingleStore’s distributed design allows for seamless horizontal scaling — without manual intervention. **Schema changes and migrations**Altering large tables or adding/dropping columns can lock tables and disrupt production traffic. Frequent schema changes, which are common in agile development, can lead to downtime or degraded performance. SingleStore schema changes operations are online and can be achieved even in production workloads. **Backup and restore**As data sets grow, MySQL’s backup/restore times (especially logical) can become an operational challenge. SingleStore offers a more distributed, parallel backup/restore workflow, significantly reducing downtime and time-to-recovery for large-scale, high-throughput environments. ## Customers who chose SingleStore over MySQL ## MySQL vs. SingleStore MySQL has hidden costs and performance downfalls. Modernize and scale your tech stack with SingleStore for faster analytics at a fraction of the total spend. **Faster analytical queries** from a distributed columnstore. **70% reduction in infrastructure costs** by consolidating databases and simplifying data pipelines. **Improved developer productivity**, thanks to a unified platform that eliminates the need for multiple database systems. ## Key features of SingleStore ### In-memory processing Accelerates query execution with in-memory storage options. #### High availability Built-in redundancy and failover mechanisms ensure reliability. #### Multi-cloud support Deploy on AWS, Azure, GCP, or on-premises. #### Seamless integration Native connectors for popular tools and frameworks like Kafka, Spark and TensorFlow. ## Real-time analytics, made on SingleStore "With SingleStore we've achieved 24x faster response times and a 75% reduction in total cost of ownership." "We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. We chose SingleStore." "I don’t think this business unit is viable for us without SingleStore. We couldn’t hit the performance requirements with MySQL." ## How to migrate from MySQL to SingleStore MySQL wire protocol, native pipelines. Same SQL. Just smarter. ## MySQL migration guides + resources Getting started with SingleStore has never been easier. How to migrate from MySQL® to SingleStore[Watch now](https://www.youtube.com/watch?v=mP2iqLKl6CU) MySQL RDS Data Integration Into SingleStore[Read now](https://www.singlestore.com/blog/mysql-rds-data-integration-into-singlestore/) MySQL vs. SingleStore comparison[Read now](https://www.singlestore.com/comparisons/mysql/) 5 Steps to Migrate From MySQL to SingleStore[Read now](https://www.singlestore.com/blog/steps-to-migrate-from-mysql-to-singlestore/) How Adobe hit 300x faster query performance with SingleStore[Watch now](https://www.youtube.com/watch?v=B0GmZHO7CsU) Choosing your next database[Read now](https://www.singlestore.com/blog/choosing-your-next-database/) MySQL OPTIMIZE TABLE: How to Keep Your Database Running Smoothly[Read now](https://www.singlestore.com/blog/mysql-optimize-table/) How to Fix MySQL Error 1040: Too Many Connections[Read now](https://www.singlestore.com/blog/mysql-error-too-many-connections/) MySQL Error 2002 (hy000): can’t connect to local MySQL server through socket[Read now](https://www.singlestore.com/blog/mysql-error-2022/) Schema and pipeline inference for SingleStore[Read now](https://www.singlestore.com/blog/schema-and-pipeline-inference-for-singlestore/) ## Global leaders choose SingleStore ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/developers/ # SingleStore Developer Hub: Guides, APIs and Tools The SingleStore developer hub: guides to build an app and migrate data, plus APIs, notebooks, free database tools and training to start building fast. See what’s new in SingleStore 9.0 Read # Developers hub Build an app Step-by-step guide for setting up your free SingleStore Helios Cloud account, load data and run your first queries. Migrate your data Follow our guides to migrate your data efficiently, including schema transformation and data ingestion tips. APIs Explore APIs Integrations Connect effortlessly with your existing tools and platforms to unlock new capabilities. View integrations Guides Read guides ## Explore SingleStore apps Jupyter notebooks provide an efficient way to explore, analyze, and visualize data, making it easier to communicate insights and results. Create and share documents containing live code, visualizations, and narrative text. Notebook Learn SingleStore's Multi-Model Capabilities Notebook Getting Started with Notebooks Notebook SingleStore Fundamentals ## Free database tools Dummy Data Generator Generate placeholder data to test your database and applications. Try now JSON to SQL Converter Transform JSON data into SQL queries ready for database integration. Try now CSV to Markdown Converter Convert your CSV files into Markdown tables for cleaner, more presentable documentation. Try now ## More ways to connect Github Discover tools, libraries, and integrations built to enhance your projects with SingleStore. Explore Webinars Our live and on-demand sessions cover best practices, use cases, and technical deep dives. Watch Forum Connect with developers and SingleStore experts to share insights and find solutions. Join Release notes Review the latest updates, improvements, and fixes that matter to your workflow. View changelog Learn more from Docs Get step-by-step guides, API references, and best practices to help you build and optimize with SingleStore. Level Up with Free Training Access in-depth courses designed to help you learn the essentials and advanced concepts of SingleStore. ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/company/ # About SingleStore: Our Team, History and Offices SingleStore builds the database that runs transactions, analytics and AI search on one copy of live data. Meet the team, our history and our offices. # Who We Are Sparking creativity, inspiration and evolution among every maker in the world. ## SingleStore By the Numbers Countries where we have customers 50+ Verticals/industries where we have customers 40+ $1B+ ARR customers 100+ What does real time mean to you? Is it the driver information you get within seconds of a ride-share app request? Is it the immediate alert that your bank has detected fraudulent activity? Or is it the personalized recommendations you get on your favorite streaming services as soon as you’ve finished watching another show? SingleStore (formerly MemSQL) was founded to help organizations and enterprises do the previously unthinkable: Unify transactional (OLTP) and analytical (OLAP) processing in a single, powerful data engine that delivers the ability to transact, analyze, reason and contextualize data in real time — while powering the applications and analytics users expect to keep their worlds moving. The formula for a real-time system is simple: It’s fast, unified, scalable and resilient—empowering companies to make quick decisions on data. Today, SingleStore is a distributed SQL database built for real-time applications and analytics. By combining transactional and analytical workloads within a multi-model structure, SingleStore eliminates performance bottlenecks and unnecessary data movement; we provide a foundation to build generative AI applications; we provide unbeatable vector functionalities.  We’re the crossroads where highly performant meets highly powerful. SingleStore is designed for the world’s makers—SaaS builders, data leaders and architects, digital giants and global innovators—that create with data every day. Globally respected brands like Nvidia, Goldman Sachs, LG, Adobe, Siemens, Hulu, Cigna, STC, Dell, Kroger, Sony, Comcast, Samsung, 6sense, Cisco, IMAX, Dentsu, SiriusXM and hundreds more choose SingleStore to build and deliver the experiences that last a lifetime. All data. All in real time. **All right now.** ## Awards + Recognition ## SingleStore Through the Years ### MemSQL founded by Nikita Shamgunov, Adam Prout and Erik Frankiel ### First product version available for customers ### Series B investment from Accel Partners raises $30 million ### Tiered storage for HTAP released ### Release of unified table for HTAP, the world's first and only single store ### MemSQL rebrands to SingleStore ### Closed Series-F funding at $146 million, securing Unicorn status ### SingleStore introduces its generative AI conference, SingleStore Now ### Release of SingleStore Pro Max ### SingleStore launches and expands partnerships with Snowflake, Apache Iceberg, Agile Platform and AWS ### SingleStore acquires BryteFlow to accelerate adoption of real-time analytics and gen AI ### Launch of SingleStore Flow, the no-code solution to reduce data migration from days to hours ### SingleStore is acquired by Vector Capital in growth buyout ## Our team Raj Verma CEO Elmer Lai CFO Andy Wild CRO Edward Hsu Chief Product Officer Jay Schaufeld CHRO ## SingleStore Around the World ### United States 388 Market Street, Suite 860 San Francisco, CA 94111 [View map](https://www.google.com/maps/place/388+Market+St+%23860,+San+Francisco,+CA+94111,+USA/@37.7918837,-122.3981804,17.91z/) 96 Union Street, Seattle, WA 98101 [View map](https://www.google.com/maps/place/MemSQL/@47.6078087,-122.3396321,15z/data=!4m5!3m4!1s0x0:0x16b779510a0aaf0b!8m2!3d47.6078087!4d-122.3396321) 321 W. Davie Street Raleigh, NC 27601 [View map](https://goo.gl/maps/zgZ47vNuegGd1sF57) #### Portugal Av. Defensores de Chaves 4 1000-154 Lisboa [View map](https://maps.app.goo.gl/4XXG7X6khrWiFa3r9) #### France WeWork La Fayette 33 Rue La Fayette, 75009 Paris [View map](https://maps.app.goo.gl/MZeKVcormvmQrJgE6) #### United Kingdom 3rd Floor 40-42 Parker St London WC2B 5PQ [View map](https://maps.app.goo.gl/85ngHJmdvg1C7hv16) #### Ukraine LIFT99 Kyiv Hub Volodymyrska St 101 Kyiv Ukraine [View map](https://www.google.com/maps/place/LIFT99+Kyiv+Hub/@50.4326631,30.5100012,15z/data=!4m2!3m1!1s0x0:0x1a02dc5be6a6c0a0?sa=X&ved=2ahUKEwjSkabZ-qKCAxU4rokEHd3lDO8Q_BJ6BAhDEAA) #### India WeWork Rajapushpa Summit Nanakramguda Road, Financial District Manikonda Jagir,
 Hyderabad 500032 [View map](https://www.google.pt/maps/place/WeWork+Rajapushpa+Summit/@17.4231812,78.3368439,17z/data=!3m1!4b1!4m5!3m4!1s0x3bcb932701475d41:0xf33f00df0633d96b!8m2!3d17.4231761!4d78.3390326) #### Singapore Centennial Tower 3 Temasek Ave., Level 18 + 17 Singapore 039190[View map](https://www.google.com/maps/place/The+Great+Room+Centennial+Tower+%7C+Coworking+Space+%26+Hot+Desking+Singapore/@1.2936217,103.8602474,15z/data=!4m5!3m4!1s0x0:0xf61b0cf3ff359aa8!8m2!3d1.2936217!4d103.8602474) #### Japan [View map](https://www.bing.com/maps?q=Nihonbashi+Mizuno+Building+7F+1-11-12+Nihonbashi+Muromachi%2C+Chuo-ku%2C+Tokyo+103-0022&FORM=HDRSC6&cp=35.685546%7E139.775771&lvl=16.5) ## Featured Resources Blog What Is a Real-Time Analytics Database? Blog SingleStore on Google Cloud: The Backbone of Your Data Infrastructure Blog Journey From the Oracle Database to SingleStore: A Database Odyssey Case Study publica.la Speeds Search 70X, Processes Millions of Rows per Second, Lowers TCO Blog [r]evolution Summer 2022: Distributed SQL “Workspaces” Power Modern Applications Blog What You Need to Know About Using Generative AI With Your Data ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/partners/ # SingleStore Partner Program and Integrations Browse SingleStore technology and cloud partners, from Kafka and Amazon S3 to BI tools, and learn how to join the SingleStore partner program. Powering a connected ecosystem Become a partner # SingleStore Partners SingleStore works with the cloud providers and technology companies whose tools your stack already runs on. Stream data in from Confluent and Redpanda, analyze it in Tableau and other BI tools, and build AI applications with OpenAI and LangChain. Browse partners by type and product below, or join the partner program. ## Browse partners ### Partner Type ### Product ### AWS Partner Type Cloud Region Global Product Migration, AI/ML AWS has over 200 fully featured services for a wide range of technologies, industries, and use cases. ### Google Cloud Partner Type Cloud Region Global Product Business Intelligence, AI/ML A suite of cloud computing services that provides a series of modular cloud services including computing, data analytics, machine learning, and management tools ### Confluent Partner Type Technology Region Global Product Streaming Confluent platform is a streaming platform that enables you to organize and manage data from many different sources with one reliable, high performance system ### Tableau Partner Type Technology Region Global Product Business Intelligence Tableau is a visual analytics platform transforming the way we use data to solve problems - empowering people and organizations to make the most of their data. ### OpenAI Partner Type Technology Region Global Product AI/ML Developed by OpenAI, ChatGPT is a form of natural language processing to create humanlike conversational dialog. ### CData Partner Type Technology Region Global Product Change Data Capture, ETL, Migration Use CData Sync to integrate and replicate data from on-prem to on-prem, cloud to cloud, on-prem to cloud, and cloud to on-prem. ### LangChain Partner Type Technology Region Global Product AI/ML LangChain is an open-source framework designed to simplify the creation of applications using LLMs. It provides a standard interface for chains, integrations with other tools, and end-to-end chains for common applications. ### Redpanda Partner Type Technology Region Global Product Streaming Redpanda is a powerful, yet simple, and cost-efficient streaming data platform that is compatible with Kafka APIs while eliminating Kafka complexity. ### Unstructured Partner Type Technology Region Global Product AI/ML Unstructured effortlessly extracts and transforms complex data for use with every major vector database and LLM framework Showing 9 of 54 items Disclaimer: Some information in this profile is maintained by the SingleStore Partner, who is responsible for correctly representing their company, solutions and services. Partner’s names and logos are the property of their respective owner. ## Partner with SingleStore Join our connected ecosystem and help customers build real-time, AI-powered solutions --- Source: https://www.singlestore.com/security/ # SingleStore Security and Trust Center The SingleStore Helios Security and Trust Center covers how we protect your data, with reliability, compliance certifications, privacy and our security profile. # SingleStore Helios Security & Trust Center Protect your most critical data at all times. ## Security at SingleStore At SingleStore, nothing is more important than the security and reliability of your data. That’s why we take an all-encompassing approach to security, reliability, and trust. From development to delivery we ensure that security is considered, designed, reviewed and implemented system-wide to ensure your data — and that of your customers — is protected at all times. - Application Security - Cloud Security - Corporate IT Security - Governance, Risk & Compliance If you would like to report a security concern or have a security inquiry related to SingleStore please see our [Responsible Disclosure page](https://www.singlestore.com/responsible-disclosure/) for instructions. ## Reliability SingleStore Helios product offerings used for production deployments across Amazon Web Services, Microsoft Azure, and Google Cloud Platform maintain up to 99.99% Uptime SLA, zero downtime and high availability. ## Compliance SingleStore has secured industry-leading security certifications including ISO 27001, SOC 2 Type 2 and adheres to a comprehensive internal privacy compliance framework (including, where necessary, the adoption of approved standard contractual clauses covering international transfers of data) to address compliance requirements of regulated industries including financial services, healthcare, eCommerce and more. And, we’re committed to expanding our growing list of certifications to meet customer requirements, and ensure you always stay on the right side of industry compliance. For compliance questions please reach out to [compliance@singlestore.com](mailto:compliance@singlestore.com). ## Privacy We know trust is rooted in transparency. SingleStore ensures protection and transparency for where and how your information is stored in our database. Full details can be found in our privacy policy. Looking for Security information about SingleStore Self-Managed? ## Learn More About Security at SingleStore Contact us for info related to data access, portability, and more. ### Explore more resources --- Source: https://www.singlestore.com/ # SingleStore: The Database for Apps and AI Agents SingleStore is the new database for applications and AI agents: run transactions, analytics, vector and full-text search on one copy of your live data. # The future needed a new database. ## We already built it. SingleStore is the database for applications and agents that act on the latest write, with answers in milliseconds. Analytics Feature Flags Activity Store Which customers are trying the new feature right now? 347 active users on Smart Search. Enterprise accounts are 62% of adoption, session time up 28%. ## Decisions moved from people to software. Now they are moving to agents. Software already approves payments, prices ads and routes shipments, and agents are taking on more of those decisions. An agent that reads last night’s numbers acts on last night’s business, so the database behind it has to hold the current state and answer in milliseconds. Why SingleStore ## One engine for operational and analytical data. SingleStore brings transactions, analytics and context together in one engine, so agents work with the current state of the business and take the next step without crossing into another system. How transactions and analytics share one engine ## What every app and agent gets from one engine. Consistency Written and queryable in the same second Every reader sees the same committed state, including the row your application wrote a moment ago. SingleStore was built for latency first, with millisecond response as the normal operating state. How queries stay fast Composability Open data for AI, applications and analytics One SQL query can join relational tables, JSON, vectors and full-text indexes. SingleStore also connects live data to open formats like Apache Iceberg, without locking you into a catalog or a vendor. Iceberg and data integration Concurrency Thousands of users and agents at once Users and agents read and write the same live data at the same time, with no cache or replica in between, and the engine scales out as more of them arrive. How SingleStore handles concurrency ## SingleStore Helios, with Agentic Intelligence built in. **SingleStore Helios®.** The cloud database for transactions, analytics, vector and full-text search, in your cloud of choice. **Agentic Intelligence.** People ask questions about live business data in plain English, and models and agents get the same current context to act on. See the Helios page See the Agentic Intelligence page ## Built for the future. **In production today.** Query results in 10–20ms, 2+ PB in SingleStore. Fortune 25 bank. 10–20ms Under 10 seconds, from time-outs, at 100B events a day. Armis. 10s Events an hour, with queries back in under a second. impact.com. 20M Concurrent users at peak on one engine. Siemens. 100K Christoph Malassa Head of Data and AI Platforms, Siemens > With SingleStore, we no longer look at the database as a limiting factor in our business. [G2: 4.5 out of 5, 118 reviews](https://www.g2.com/products/singlestore/reviews) [TrustRadius: 8.3 out of 10, 114 reviews, Buyer’s Choice](https://www.trustradius.com/products/singlestore/reviews) [Forrester Wave: Strong Performer, Translytical Data Platforms Wave](https://www.forrester.com/report/the-forrester-wave-tm-translytical-data-platforms-q4-2024/RES181471) ## Live data for the industries that decide in real time. Teams usually start with one workload where a late answer costs money, and run SingleStore alongside the systems they already have. ## SaaS and ISV Live dashboards inside your product for every tenant, while the data keeps landing. **Customer-facing analytics** **Marketing tech** **Ad tech** **Factors.AI** - 30x faster query responses ## Security and observability Score each event against months of history while the incident is still open. **Monitoring and anomaly detection** **Real-time analytics** **Armis** - 70% lower data pipeline cost, at 100B events a day ## Financial services Fraud, risk and trading teams read the same current position at the same moment, from one copy. **Banking, payments and insurance** **Trading and capital markets** **Tier 1 bank** - nearly $40M saved a year ## Operations at scale Networks, grids, fleets and stores watched as they run, by thousands of people on the same live data. **Media and telecom** **Energy** **Retail** **Top 10 retailer** - $50M from 10% more accurate on-hand inventory ## Where to go next. For teams scaling an app Start with one workload. Talk to us For lakehouse teams Bring Iceberg tables into live applications. Compare For leaders funding agents See what teams build. Customer stories For developers Start free on a Shared cluster. Start free ## Run your hardest query on SingleStore. **See it answered on live data.** Bring the query your current database struggles with, and run it on SingleStore with one of our engineers. Start free Start on a free Shared cluster with no credit card. Learn more from Docs Get step-by-step guides, API references, and best practices to help you build and optimize with SingleStore. --- Source: https://www.singlestore.com/ai/ai-functions/ # SingleStore AI Functions: Run Gen AI Inside SQL SingleStore AI Functions run text generation, sentiment analysis, translation and vector embeddings inside SQL, right next to the data they work on. # AI Functions The power of AI delivered simply within SQL ## Supported AI functions AI_COMPLETE Generate human-like text for various applications, from chatbots to content creation. AI_SENTIMENT Analyze text to determine its emotional tone—positive, negative, or neutral. AI_TRANSLATE Translate text from one language to another with high accuracy. EMBED_TEXT Create vector embeddings from text for use in semantic search and other AI applications. AI_EXTRACT Pull specific information and data points from unstructured text. AI_SUMMARIZE Condense long-form text into concise and informative summaries. AI_CLASSIFY Categorize text into predefined classes for easier organization and analysis. ## Enterprise-grade AI ### SQL-native AI Call powerful generative models using standard SQL functions—no Python notebooks or external services required. ### Auto-scaling Functions scale automatically based on workload demand with SingleStore's serverless architecture. ### Enterprise security Role-based access control at the database level ensures only authorized users can execute AI Functions. ### Millisecond performance AI Functions run in optimized containers alongside SingleStore Helios, delivering sub-second Time to first token even on massive datasets. ### Zero data movement Process sensitive text data where it lives. Eliminate API latency and maintain compliance by keeping data inside your SingleStore database. ## How to get started AI Functions seamlessly enable, connect, and integrate advanced AI capabilities into your data workflows for smarter, faster insights. ## Benefits Simplicity Anyone familiar with SQL can seamlessly access powerful AI models streamlining workflows and minimizing operational complexity. High performance Co-locating AI Functions with the database engine greatly reduces network latency and accelerates time to process complex queries. Real-time insights Operate on live data to power real-time applications in customer support, fraud detection, and more. ## Unlock AI Functions Uncover insights instantly — no external setup required. Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about AI Functions --- Source: https://www.singlestore.com/ai/aura-analyst/ # Aura Analyst: Plain-English Analytics on Live Data Aura Analyst turns plain-English questions into SQL, runs it on your live SingleStore data and explains the results, with the query behind every answer. # Aura Analyst Your AI-powered data analyst that turns natural language into powerful, accurate SQL and instantly unlocks insights from your data. ## Key features ## Designed for curiosity – Built for the unexpected question Ask in plain English — Aura Analyst interprets intent, understands schema, and translates your question into Insights automatically. ## Always now – Insights powered by live, real-time data Runs directly on fresh data — whether MBs or TBs — powered by SingleStore’s low-latency, high-throughput engine. ## Built to evolve – Learns from every interaction Learn from past queries, metadata, and business rules to frame every answer with precision and consistency. ## Radical transparency – Every query, explainable and trusted Every query is transparent, observable, and governed. Built-in safeguards ensure accuracy, compliance, and secure data access. ## How Aura Analyst works ## Benefits Real-time exploration Every answer is based on the latest data, up to the second — perfect for data + AI applications Context-aware intelligence Aura Analyst understands your schema, business rules, and the context of prior queries — so each follow-up feels natural. Conversational data access Data isn’t locked behind dashboards. It becomes a dialogue — where users can follow their curiosity step by step. ## Request access today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about Aura Analyst --- Source: https://www.singlestore.com/ai/ml-functions/ # SingleStore ML Functions: Machine Learning Inside SQL SingleStore ML Functions classify records, detect anomalies and forecast time series inside SQL, so models run in the database next to your live data. # ML Functions Build and run intelligent ML models right next to your data ## Supported ML functions ML_CLASSIFY Predict categorical labels to classify data into different groups. ML_ANOMALY_DETECT Identify outliers and unusual patterns in your data to detect fraud and other anomalies. ML_FORECAST Predict future values in a time series to forecast demand, revenue, and other key metrics. ## Deploy ML models where your data lives ML Functions enable running custom machine learning models directly in SingleStore using SQL. Train, deploy, and execute predictive models on live data without complex MLOps pipelines or data movement. ### No-ETL, No-Notebook workflow A guided user interface for model training that generates declarative SQL commands, abstracting away the complexities of data preparation and model selection. ### Auto-scaling Containers scale based on workload automatically, handling sudden spikes in prediction volume without manual intervention. ### In-database execution Models execute directly alongside your data in SingleStore Helios, eliminating network latency and data serialization overhead. ### Secure isolation Role-based access control ensures model access is restricted to authorized users and applications. ## How to get started ML Functions allow you to train, deploy, and serve custom machine learning models directly in Aura Container Services, next to your SingleStore database. ## Unlock ML Functions Uncover insights instantly — no external setup required. Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about ML Functions --- Source: https://www.singlestore.com/brand/ # Visual Identity Guidelines + Assets | SingleStore Our visual identity guidelines and assets include logos, brand color palettes, corporate messaging and usage rules. # Visual Identity Guidelines + Assets ## Logos The SingleStore logo, representative of ideas of continuous improvement, brings both a sophistication and flexibility suitable for a 
multi-generational company. It’s a cornerstone of our identity — a symbol of trust, quality and a key identifier for our customers. Logos should not be stretched, reversed, flipped or altered in any way. The preferred color-way is in solid black or solid white in a 
horizontal orientation. SingleStore horizontal lock-up black[Download now](https://www.singlestore.com/assets/files/3ca57f2c9fc1e0207b4eedd3ad511b14534820b2.zip) SingleStore horizontal lock-up white[Download now](https://www.singlestore.com/assets/files/4ecb1371cc51984b89928ee5359f45f6c8b64412.zip) ## Color palette Our palette has been carefully chosen to allow for a diverse set of brand executions while remaining highly legible and accessible. Divided into three groups, color should be used with intention and restraint — favoring moments of calm over extremely colorful executions. ### Primary palette **Purple 500****RGB** 209, 153, 255
 **HEX** #D199FF **CMYK** 18, 38, 0, 0 **PMS** 2563c **Purple 700** **RGB** 130, 13, 223 
**HEX** #820DDF **CMYK** 71, 88, 0, 0 **PMS** 266c **Purple 900**
 **RGB** 54, 0, 97 
**HEX** #360061 **CMYK**76, 100, 0, 18 **PMS** 269c ### Neutral palette **Black 100**
 **RGB** 242, 242, 242
 **HEX** #F2F2F2 **CMYK** 10, 7, 5, 0 **PMS** Cool Gray 1c **Black 600**
 **RGB** 82, 82, 82
 **HEX** #525252 **CMYK** 50, 40, 34, 17 **PMS** Cool Gray 9c **Black 1000 RGB** 0, 0, 0
 **HEX** #000000**CMYK** 100, 61, 32, 96 **PMS**Black 6c ### Secondary palette **Blue 700**
 **RGB** 75, 71, 255 **HEX** #4B47FF **CMYK** 69, 10, 0, 0 **PMS** 285c **Green 700** 
**RGB** 161, 255, 40 
**HEX** #A1FF28 **CMYK** 40, 0, 98, 0 **PMS**375c **Cool Gray 700** 
**RGB** 171, 193, 187 **HEX** #ABC1BB **CMYK** 42, 11, 16, 0 **PMS**5503c **Yellow 700** 
**RGB** 255, 203, 46 
**HEX** #FFCB2E **CMYK** 0, 4, 88, 0 **PMS**115c **Orange 700**
 **RGB** 255, 108, 2 **HEX** #FF6C02 **CMYK** 0, 64, 100, 0 **PMS**1505c **Red 700**
 **RGB** 255, 134, 123**HEX** #FF8678 **CMYK** 0, 64, 58, 0 **PMS**2345c ## Typography Roboto is an economical, robust and versatile sans serif typeface that brings a clean, modern voice to SingleStore materials where clarity matters most. Its open shapes, balanced proportions and flexible range of weights make information easy to scan and comfortable to read, while supporting a calm, confident brand expression. [Download now](https://fonts.google.com/specimen/Roboto) [Download now](https://fonts.google.com/specimen/Roboto+Mono) ## Company boilerplate ### One sentence SingleStore is the world’s only database that allows users to transact, analyze and contextualize data in real time, elevating human lives. ### Short form SingleStore empowers the world’s makers to build, deploy and scale modern, intelligent applications on one database that can transact, analyze and contextualize data in real time — elevating human lives. ### Long Form The core of all AI, business intelligence and applications is data — various bits and bytes that come in all different formats. Only when we sift through this data, reason with it and build on top of it in real time does it give way to vast amounts of information and knowledge. 

Real-time insights are key to the way we live our lives today; the way we entertain ourselves; the way we listen to music; the way we order groceries. Real-time insights keep your BI tools fresh, and they ensure you never miss a fraudulent payment. The fact of the matter is this: every company is a technology company, and every technology company is a data company. And ultimately, every data company needs to reason and act on real-time data to elevate human lives, and keep the world moving. SingleStore empowers the world’s makers to build, deploy and scale modern, intelligent applications — backed by streaming data ingestion, a unique table type that supports both transactions (OLTP) and analytical (OLAP) workloads, limitless point-in-time recovery and a distributed (shared-nothing) MySQL-compatible architecture. ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/cloud-pricing/ # SingleStore Helios Pricing: Compute, Storage and Transfer SingleStore Helios pricing for compute, storage and data transfer in the managed cloud database on AWS, Microsoft Azure and Google Cloud. Start free. - [Pricing](https://www.singlestore.com/pricing/) - / SingleStore Helios # SingleStore Helios Pricing Experience the best-in-class speed, capability, and reliability of SingleStore, available instantly and on-demand in the cloud. With SingleStore Helios, customers can reduce the operational expenses and resources associated with managing the database and shift their attention to supercharging queries and application performance. [Learn More](https://www.singlestore.com/product-overview/) ## Features Include - Fully-managed and resilient database-as-a-service with Universal Storage capabilities - Automated provisioning, configuration, upgrades, and elastic scaling - Cloud agnostic deployments on AWS, Google Cloud and Microsoft Azure - Pay only for what you use with dynamic billing based on Compute and Storage usage ## Compute Compute consumes a fixed number of credits per hour, and can be scaled up or down to increase or decrease performance. Compute is separate from [Storage fees that are listed here](https://www.singlestore.com/cloud-pricing/#storage) and is metered granularly by the second. For questions on pricing, volume discounts and deploying in another region [contact us](https://www.singlestore.com/contact/). | Size | vCPU | Memory | Credits per Hour (CR) | Cost per hour ($) | |---|---|---|---|---| | S-00 | 2 | 16 GB | 0.25 CR | $0.99 | | S-0 | 4 | 32 GB | 0.5 CR | $1.98 | | S-1 | 8 | 64 GB | 1 CR | $3.96 | | S-2 | 16 | 128 GB | 2 CR | $7.92 | | S-4 | 32 | 256 GB | 4 CR | $15.84 | | S-6 | 48 | 384 GB | 6 CR | $23.76 | | S-8 | 64 | 512 GB | 8 CR | $31.68 | | S-12 | 96 | 768 GB | 12 CR | $47.52 | | S-16 | 128 | 1024 GB | 16 CR | $63.36 | | S-20 | 160 | 1280 GB | 20 CR | $79.20 | ### Compute Credits $3.96/Credit ### Product Editions SingleStore Compute Credits are consumed at a rate based on the edition being used. The following consumption rates can be used for the available product editions: | Edition | Standard | Enterprise | |---|---|---| | Credit Consumption | 1x | 1.5x | ### Regions SingleStore can be deployed into any available cloud regions. Regions are divided into tiers based on price, and regions consume credits based on the tier. Helios can be deployed in a combination of Managed and Dedicated regions. Flow, Services, and AI can be deployed in Managed regions. | Managed Regions | Tier 1 Regions | Tier 2 Regions | Tier 3 Regions | Tier 4 Regions | |---|---|---|---|---| | Consumption Rate Multiplier | 1.0000x | 1.1250x | 1.2500x | 1.3750x | Dedicated Regions: Please [contact us](https://www.singlestore.com/contact/) ### Deployment Configurations Helios provisions vCPU, Memory, and Disk Cache automatically based on the deployment size selected as shown above. Additionally, Disk Cache and Compute (vCPU + Memory) resources can be scaled independent of each other. Doing so will apply the below consumption rate multipliers: | Configuration | 1X | 2X | 4X | |---|---|---|---| | Cache Scale | 1x | 1.3x | 1.7x | | Compute Scale | 1x | 2x | 4x | ### Availability Zones | Availability Zones | Single-AZ | Multi-AZ | |---|---|---| | Credit Consumption | 1x | 1.3x | ### Flexible Usage Model For questions on product pricing and volume discounts. [Contact Us](https://www.singlestore.com/contact/) ### Container Services* SingleStore's Container Services consume credits based on the time in which the Container deployment is running. Each deployment size and region affect the rate at which credits will be used. **This is preview pricing which is subject to change prior to General Availability.* | Service | Small Container Credits per Hour (CR) | Medium Container Credits per Hour (CR) | GPU Container Credits per Hour (CR) | |---|---|---|---| | Interactive Notebooks | 0.084 | 0.168 | 0.731 | | Scheduled Jobs | 0.084 | 0.168 | 0.731 | | Cloud Functions | 0.084 | 0.168 | 0.731 | | Python UDFs | 0.084 | 0.168 | 0.731 | | AI Functions | 0.084 | - | - | | ML Functions | 0.084 | - | - | ### AI Functions* ### Agentic Intelligence* ### Flow* Flow consumes credits based on the time in which Flow deployments are running and available to move data from a source database to a destination SingleStore cluster. Each deployment size and region affect the rate at which credits will be used. **This is preview pricing which is subject to change prior to General Availability.* | Flow deployment size | Credits per Hour (CR) | |---|---| | f-1 | 0.123 | | f-2 | 0.246 | | f-3 | 0.492 | | f-4 | 1.084 | | f-5 | 2.069 | | f-6 | 4.138 | | f-7 | 9.643 | | f-8 | 18.731 | ## Storage | Storage Tier | Tier 1 | Tier 2 | Tier 4 | Tier 3 | |---|---|---|---|---| | Price per Avg GB per Month | $0.023 | $0.025 | $0.040 | $0.026 | ### Average GB stored ## Data Transfer Data transferred using SingleStore Flow* incurs cost at the below rates. **This is preview pricing which is subject to change prior to General Availability.* | | Flow* | |---|---| | Price per GB processed | $0.02 | Data transferred using Smart Disaster Recovery (SmartDR) incurs cost at the below rates. | Source Region Tier | Per TB Egress within same Cloud Service Provider | |---|---| | Tier 1 | $20 | | Tier 2 | $90 | | Tier 3 | $100 | | Tier 4 | $150 | ## Details ### Get Started for Free [Start free](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fcloud-pricing%2F) on a Shared cluster for development and testing, then move to Standard for dedicated compute and an SLA. ### High Availability ### Support Helios Cloud is a fully automated SaaS solution, with customer access to 24x7 support for resolving issues that arise while using the database. [Learn More](https://www.singlestore.com/support/) ### Security Architectured for maximum data security, SingleStore has secured industry-leading certifications including ISO 27001 and SOC 2 Type 2. SingleStore is also fully compliant to the requirements of HIPAA, CCPA, and GDPR. [Learn More](https://www.singlestore.com/security/) ## FAQs ### What services are provided in the Cloud? SingleStore automatically provisions infrastructure, deploys and configures database software, maintains availability, provides scalability, performs backups, and handles updates including SingleStore, system software, and infrastructure. ### Will I incur any network data transfer charges? We do not charge for loading data into SingleStore. However, such operations might incur costs from the service you load data from. Planned built-in features such as exporting or replicating data into different regions, different cloud providers, or transfers over the internet will incur costs in line with the starting price band that cloud providers commonly charge. ### How are backups managed? SingleStore regularly performs administrative backups of all data. Backup and Point In Time Recovery are charged at the standard storage rate that depends on the regional tier in which data is stored. ### How are compute and data storage billed? Compute and storage are billed separately to make it easier for you to see the level of compute resources consumed. Clusters are metered by the second. Storage charges are only incurred for storage used and are calculated based on the average total number of GB used per month. Object storage is allocated to SingleStore deployments and stores operational data as well as columnstore tables. ### When I suspend my cluster, what am I charged for? When you suspend a cluster, we stop billing for that cluster as soon as the cluster is suspended. Storage charges continue to be incurred based on usage while clusters are suspended. ### Is the storage cost based on post-compression? Yes, storage is metered after compression. Compression on average is about 80% (e.g. 100 GB of raw data will be compressed as 20 GB on average) but actual compression will depend on the dataset. ### How do I know what size deployment I need? To give you the most accurate information on sizing, contact us to discuss your schemas, queries, and tables together. [Request a Quote](https://www.singlestore.com/contact/) ### What payment methods are supported? We support direct payment methods such as credit cards, as well as billing for compute through Google Cloud Marketplace, Azure Marketplace, and AWS Marketplace. ### Can I setup a commitment to save money? Yes, setting up a commitment is a great way to save on compute compared to on-demand pricing. [Contact us to learn more about commitment.](https://www.singlestore.com/contact/) ### What happens if the hardware SingleStore Helios runs on fails? SingleStore is built on a cloud-native and highly resilient architecture that features high availability within the deployment. When cloud instances fail, SingleStore transparently handles the failures, replaces instances, and maintains availability to the application. ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/ # Compare SingleStore With Other Databases Compare SingleStore with the warehouse, lakehouse, operational, search and vector databases you run today, including the cases where you should keep yours. Compare # Compare SingleStore Most teams looking at SingleStore already run something else, and the question is whether to keep it. These pages answer that directly, one system at a time, including the cases where the answer is to keep what you have. Data warehouses and lakehouses Systems built to analyze data after it has been loaded. We sit beside them and serve the live state. Search and analytics stores Systems teams add for speed, and then pay for twice. Operational databases The systems of record our customers keep. Most land beside one of these, not instead of it. How we write these - **We name the alternative** Every page says which product it compares against, in the title and the heading. - **We cite their numbers to their own documentation** Where we quote a competitor figure, it is theirs and it is sourced. - **We date the comparison** These products change. Each page carries the date its claims were last verified. - **We say where they are the better choice** Every page has a section for it, and it is written sincerely. - **We do not score ourselves well on everything** A table with no gaps in it is marketing, not an evaluation. ## Not sure which one applies? Most of our customers land beside a system they keep. If you tell us what you run and what is slow, we will tell you which of these pages is the one worth reading, and whether there is a case for us at all. --- Source: https://www.singlestore.com/comparisons/mysql/ # SingleStore vs. MySQL: Scale Out With Real-Time Analytics SingleStore vs. MySQL: scale out past one server and run real-time analytics on the data your MySQL application writes, over the MySQL wire protocol. # SingleStore vs. MySQL ## Analytics and scale beyond a single MySQL server MySQL is a single-server database that can run in a cluster with limited scalability. It stores data on disk and is often used with a caching layer. SingleStore is built for fast ingest, fast queries and high concurrency, and runs transactional and analytical workloads in one system, in the cloud, on Kubernetes or on-premises. ## SingleStore's advantages over MySQL ### Speed Ingest streaming data in parallel with exactly-once semantics from Kafka, Spark and S3, in Parquet, JSON or CSV, and query it immediately for operational analytics. #### Scale A scale-out architecture responds to growing workloads on commodity hardware, without add-ons or specialized tuning. #### Hybrid workloads Highly concurrent transactional and analytical workloads run in a single system. #### Operations Deploy and scale on multiple clouds with DevOps tooling, and connect to Kafka, Spark, HDFS and Kubernetes, without the manual cluster upkeep MySQL needs. ## SingleStore and MySQL side by side | | SingleStore | MySQL | |---|---|---| | Description | Built for fast ingest, fast queries and high concurrency. Available in the cloud, on Kubernetes or on-premises. | Single-server database that can run in a cluster with limited scalability; stores data on disk and is often used with a caching layer. | | Database model | Relational | Relational | | Managed service | SingleStore Helios | MySQL Database Service | | Real-time analytics | Shared-nothing scale-out for analytics on live data. | Not designed for analytics on rapidly changing data. | | Maintenance | A software-only environment on standard hardware. | Routine cluster operations take manual effort. | | Deployment | DevOps-ready deployment and scaling on multiple clouds; runs with Kafka, Spark, HDFS and Kubernetes. | Upgrades are involved; extensive DevOps tooling is in the enterprise edition. | | Architecture | Scale-out on commodity hardware, without add-ons or specialized tuning. | Single-box architecture that does not scale out well. | | Ingest | Parallel streaming ingest with exactly-once semantics from Kafka, Spark and S3; batch loads too. | No code generation or skiplist indexes for real-time analytics. | ## Teams that moved beyond MySQL ### 60,000 concurrent queries per second across a single cluster Real-time mobile ad optimization and overlap targeting analysis. "Working with SingleStore, we gain an unprecedented advantage in real-time analytics, delivering effective models for our partners to increase engagement rates and boost revenue." David Abercrombie, Principal Data Analytics Engineer. #### Real-time decision-making in MedTech With SingleStore, Medaxion found a solution to the analytics problems that affect companies across health care. "By combining the ease of presentation and abstraction of Looker for analytics, with the technical prowess of SingleStore as the database behind Looker, we now have simply the best analytics in healthcare." John Toups, CTO. ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog The Challenges of MySQL, and Why It Might Be Time to Migrate to SingleStore Blog Database Benchmark: MySQL vs. PostgreSQL vs. SingleStore Performance in Docker (100M+ Records) Blog Case Study: Customer Saves $60K per Month on Move from AWS RDS and Druid.io to SingleStore ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/oracle/ # SingleStore vs. Oracle: Real-Time Analytics for Less How SingleStore compares with Oracle: real-time analytics on live data in one ANSI-SQL engine, with elastic scale-out at a fraction of the cost. # SingleStore vs. Oracle ## Real-time analytics on operational data, at a fraction of the cost Oracle is the system of record for mission-critical transactions, with deep tooling and strong recovery. Real-time analytics on that data usually means an expensive accelerator add-on or a separate warehouse, and the per-core licensing adds up. SingleStore runs transactions and analytics in one engine on ANSI SQL, ingesting and querying live data at a fraction of the cost, and often running beside Oracle rather than replacing it. ## SingleStore: transactions and analytics in one engine ### Analytics on live data Parallel, lock-free ingestion and a vectorised columnstore query operational data as it lands, so analytics reflect the latest write, with no nightly ETL into a separate warehouse. #### A fraction of the cost A single software-only subscription on standard hardware replaces per-core licensing and analytic accelerator add-ons, for a large reduction in total cost of ownership. #### Distributed scale-out A distributed, shared-nothing architecture scales out across commodity nodes and separates storage and compute, rather than scaling a single large Oracle instance up. #### Runs beside Oracle Ingest from Oracle through change-data-capture and Pipelines and serve real-time analytics from SingleStore, keeping Oracle as the system of record. ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog Understanding Oracle’s Real-Time Ingestion Overhead With Kafka, and How SingleStore Is Better Blog Real-Time Data Platforms: SingleStore vs. Databricks Blog Choosing a Vector Database for Your Gen AI Stack ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/sap-hana/ # SingleStore vs. SAP HANA: Speed on Standard Hardware SingleStore vs. SAP HANA: fast ingest, fast queries and high concurrency with familiar SQL on standard hardware, in the cloud, on Kubernetes or on-premises. # SingleStore vs. SAP HANA ## In-memory speed without specialized hardware SAP HANA runs on specialized hardware. SingleStore is built for fast ingest, fast queries and high concurrency on standard hardware, and is available in the cloud, on Kubernetes or on-premises. ## SingleStore's advantages over SAP HANA ### Speed Instant insights for operational analytics, with parallel, lock-free ingest of streaming data. #### Scale A scale-out architecture that grows on commodity hardware, without manual sharding or hardware add-ons. #### SQL Familiar SQL and lower cost, on an architecture built to scale. #### Operations DevOps-ready deployment and scaling on multiple clouds, with an open platform that runs with Kafka, Spark, HDFS and Kubernetes. ## SingleStore and SAP HANA side by side | | SingleStore | SAP HANA | |---|---|---| | Description | Built for fast ingest, fast queries and high concurrency. Available in the cloud, on Kubernetes or on-premises. | Runs on specialized hardware. | | Database model | Relational | Relational | | Managed service | SingleStore Helios | SAP HANA Cloud | | Ingest | Parallel, lock-free ingest of streaming data. | No parallel lock-free ingest for streaming data. | | Maintenance | A software-only environment on standard hardware. | Tightly integrated hardware and software make patching and upgrades long-running work. | | Deployment | DevOps-ready deployment and scaling on multiple clouds. | Scale-out involves downtime. | | Architecture | Scale-out on commodity hardware, without add-ons or specialized tuning. | Scale-out requires manual sharding, data redistribution and hardware add-ons. | | Cost of ownership | One software subscription that is simple to manage and patch. | Specialized hardware, maintenance contracts, options and upgrade fees. | ## A Fortune 50 company augmented Hadoop with SingleStore ### Faster analytics on Hadoop data A diversified Fortune 50 company needed fast analytics at the divisional level and the ability to roll data up across the company for quarter-end reporting. Real-time HDFS ingestion and faster queries cut the time from event to dashboard, and SingleStore SQL opened HDFS data to more teams and standard BI tools. ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog Case Study: Augmenting Hadoop with SingleStore at a Fortune 50 Company Blog Case Study: Customer Saves $60K per Month on Move from AWS RDS and Druid.io to SingleStore Blog Getting Started With SingleStore Helios Cloud ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/comparisons/vertica/ # SingleStore vs. Vertica: Transactions and Analytics SingleStore vs Vertica: transactions and analytics in one system, with lock-free ingestion and sub-second analytics on real-time and historical data. # SingleStore vs. Vertica ## Real-time analytics where a columnar warehouse stops Vertica is a columnar relational database designed for analytical workloads in data warehousing. SingleStore combines transactional and analytical processing in a single system, with lock-free ingestion and fast analytic queries on fast-changing data. ## SingleStore's advantages over Vertica ### Fast ingest and queries A database built for fast ingest and high-performance queries, to shorten the time to insight. #### One table type for both workloads Universal Storage processes transactional and analytical workloads on operational data using a single table type. #### Low-latency analytics Sub-second responses for analytics on real-time and historical data. #### Cost One software subscription on commodity hardware, without specialized hardware or add-ons to grow. ## SingleStore and Vertica side by side | | SingleStore | Vertica | |---|---|---| | Description | Built for fast ingest, fast queries and high concurrency. Available in the cloud, on Kubernetes or on-premises. | Columnar relational database designed for analytical workloads in data warehousing. | | Database model | Relational | Relational | | Managed service | SingleStore Helios | Not listed on the previous page | | Real-time ingest | Lock-free ingestion and fast analytic queries on fast-changing data. | Not built for real-time ingestion and analytics on rapidly changing data. | | Workloads | Transactions and analytics (HTAP) in a single system. | Not aimed at high-velocity transactions, streaming insights or hybrid workloads. | | Architecture | Scale-out on commodity hardware, without add-ons or specialized tuning. | Growth in data and concurrency is met with add-ons, hardware upgrades or tuning specialists. | | Cost of ownership | One software subscription that is simple to manage and patch. | Specialized hardware and subscription costs. | ## One engine for applications, analytics and AI ## Global leaders choose SingleStore ## Additional resources Blog Case Study: Customer Saves $60K per Month on Move from AWS RDS and Druid.io to SingleStore Blog Getting Started With SingleStore Helios Cloud ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/connectors/integrations/ # Integrations | SingleStore SingleStore offers native integrations with all your favorite tools. Analytics platforms, data integration and ETL tools, security and governance tools, and more. # Integrations AI/ML Platform Analytics and BI Application Platform Data Integration and Extract, Transform, Load (ETL) Management Monitoring Schema Migration Security and Governance ## Featured Featured ### Denodo Transform your data ecosystem for AI and self-service Featured ### Collibra The data and AI leader for you Featured ### Datadog See inside any stack, any app, at any scale, anywhere Featured ### Terraform Automate infrastructure on any cloud with Terraform ## AI/ML Platform ### Dataloop Explore and analyze vast quantities of unstructured data from diverse sources ## Analytics and BI ### Alteryx Designer Automate data prep, analytics, machine learning and data science processes ### Cognos Analytics Make better decisions faster with IBM Cognos Analytics ### Denodo Transform your data ecosystem for AI and self-service ### Dremio Bring users closer to the data with lakehouse flexibility, scalability, and performance ### GoldenGate Enable the replication of data in heterogeneous data environments ### GoodData Serious platform for data processing, collection and visualization ### Looker Business intelligence platform embedded analytics ### MicroStrategy AI at the core of your intelligence strategy ### Power BI A unified, scalable platform for self-service and enterprise business intelligence ### Sisense Intelligent data analytics software ### Tableau Tableau helps people see, understand and act on data ### Tibco Spotfire Solving complex, industry-specific problems at the speed of thought ### Zoho Analytics AI-powered self-service BI and analytics platform ## Application Platform ### Vercel Your complete platform for the web ## Data Integration and Extract, Transform, Load (ETL) ### AWS Glue Discover, prepare, and integrate all your data at any scale ### Apache Beam The easiest way to do batch and streaming data processing ### Apache Flink Stateful computations over data streams ### Apache Spark Apache Spark™ is a multi-language engine for executing data engineering, data science, and machine learning on single-node machines or clusters ### Azure Data Factory (ADF) A fully managed, serverless data integration service ### Azure Event Hubs A native data-streaming service in the cloud that can stream millions of events per second ### Confluent Kafka Connector Use self-managed Apache Kafka® connectors to move data in and out of Kafka ### Data Virtuality Pipes Quickly and easily integrate data from a wide range of databases and APIs to a connected data warehouse ### Estuary Estuary Flow is a real-time ETL and data pipeline platform for quick data integration ### Fivetran Unlock end-to-end automation, reliability & scale with Fivetran ### HVR HVR is a powerful software product that enables real-time homogeneous and heterogeneous data replication ### Informatica PowerCenter Drive better AI with better data ### Liquibase Define and deploy change management pipelines ### Qlik Qlik® helps you use your data to solve problems ### StreamSets IBM® StreamSets enables users to create and manage smart streaming data pipelines through an intuitive graphical interface ### Tableau Prep Self-service, agentic data preparation ### dbt Transform data in your warehouse ## Management ### Management API SingleStore provides the Management REST API to create and manage workspace groups and workspaces ### Terraform Automate infrastructure on any cloud with Terraform ## Monitoring ### Datadog See inside any stack, any app, at any scale, anywhere ### New Relic Intelligent observability ## Schema Migration ### Flyway Flyway extends DevOps to your databases to accelerate software delivery and ensure quality code ## Security and Governance ### Collibra The data and AI leader for you ### IBM Guardium Data Encryption Encryption solutions to secure your data and your business ### Don’t miss a thing. Get the SingleStore newsletter. By clicking the button below you understand SingleStore will retain and process your personal information in accordance with our [Privacy Policy](https://www.singlestore.com/privacy-notice/). --- Source: https://www.singlestore.com/developers/build/ # Build an app | Developers Hub | SingleStore Step-by-step guides for setting up your free SingleStore Helios® account, connecting to your database, and running your first queries. Developers Hub # Build an app with Node.jsNode.jsNext.jsPython Step-by-step guides for setting up your free SingleStore Helios® account, connecting to your database, and running your first queries. ## Connect a Python app to SingleStore Build an app with Python + singlestoredb How to connect a Python app to SingleStore using singlestoredb Build an app with Python + mysql-connector-python How to connect a Python app to SingleStore using mysql-connector-python Build an app with Python + PyMySQL How to connect a Python app to SingleStore using PyMySQL Build an app with Python + HTTP How to connect a Python app to SingleStore via HTTP ## Connect a Node.js app to SingleStore Build an app with Node.js + Drizzle ORM How to connect a Node.js app to SingleStore using Drizzle ORM Build an app with Node.js + MySQL2 How to connect a Node.js app to SingleStore using MySQL2 Build an app with Node.js + MongoDB Driver How to connect a Node.js app to SingleStore using the MongoDB driver Build an app with Node.js + HTTP How to connect a Node.js app to SingleStore via HTTP ## Connect a Next.js app to SingleStore Build an app with Next.js + Drizzle ORM How to connect a Next.js app to SingleStore using Drizzle ORM Build an app with Next.js + MySQL2 How to connect a Next.js app to SingleStore using MySQL2 Build an app with Next.js + MongoDB Driver How to connect a Next.js app to SingleStore using the MongoDB driver Build an app with Next.js + HTTP How to connect a Next.js app to SingleStore via HTTP --- Source: https://www.singlestore.com/developers/build/nextjs/drizzle/ # How to connect a Next.js app to SingleStore using Drizzle ORM Learn how to connect your Next.js app to a SingleStore database using Drizzle ORM. # How to connect a Next.js app to SingleStore using Drizzle ORM ## On this guide This guide walks you through the steps to connect a [Next.js](https://nextjs.org/) application to a SingleStore database using [Drizzle ORM](https://orm.drizzle.team/docs/get-started-singlestore). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your [#](https://www.singlestore.com/)[Next.js](https://nextjs.org/) project by installing the [drizzle-orm](https://www.npmjs.com/package/drizzle-orm) and [drizzle-kit](https://www.npmjs.com/package/drizzle-kit) packages, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ### **Prerequisites** - SingleStore account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1.Create a .env file in the root of your project. 2. In this file, define your connection string by adding a DB_URL variable, for example: .env ```bash 1DB_URL="singlestore://:@:/" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, install the following NPM packages: Bash ```bash 1npm install drizzle-orm mysql22npm install -D drizzle-kit ``` ## Establish database connection In the root directory of your project, create a db.ts file with the following content to establish a connection: db.ts ```typescript 1import { drizzle } from "drizzle-orm/singlestore";2 3export const db = drizzle(process.env.DB_URL ?? ""); ``` ## Create database schema using Drizzle ORM **1.** Create a drizzle.config.ts file in the root of your project with the following content: drizzle.config.ts ```typescript 1import { defineConfig } from "drizzle-kit";2 3export default defineConfig({4 out: "./drizzle",5 schema: "./schema.ts",6 dialect: "singlestore",7 dbCredentials: {8 url: process.env.DB_URL ?? "",9 },10}); ``` **2.** Create a schema.ts file in the root of your project and describe your database schema. For example: schema.ts ```typescript 1import { bigint, singlestoreTable, varchar } from "drizzle-orm/singlestore-core";2 3export const usersTable = singlestoreTable("users", {4 id: bigint({ mode: "number" }).autoincrement().primaryKey(),5 name: varchar({ length: 255 }).notNull(),6}); ``` **3.** Push the schema into the database by running the following command: Bash ```bash 1npx drizzle-kit push ``` Once this is done, you should have a database with a table of users ready to use. ## Query database Once you’ve added the above code, let’s test to make sure that the connection is working as anticipated. [Next.js route handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) let you create custom request handlers for a given route using the Web Request and Response APIs. Follow these steps to implement an example app: **1.** Create a route.ts file at ./app/api/users with the following content to handle requests for retrieving and creating users: route.ts ```typescript 1import { usersTable } from "../../../schema";2import { db } from "../../../db";3 4export async function GET() {5 const rows = await db.select().from(usersTable);6 return Response.json(rows);7}8 9export async function POST(request: Request) {10 const { name } = await request.json();11 const [rows] = await db.insert(usersTable).values({ name });12 return Response.json(rows);13} ``` **2.** Create a route.ts file at ./app/api/users/[id] with the following content to handle requests for retrieving a user by ID, updating a user's name, and deleting a user: route.js ```typescript 1import { usersTable } from "../../../../schema";2import { db } from "../../../../db";3import { eq } from "drizzle-orm";4 5export async function GET(request: Request, { params }: { params: Promise<{ id: string }> }) {6 const { id } = await params;7 8 const rows = await db9 .select()10 .from(usersTable)11 .where(eq(usersTable.id, Number(id)));12 13 return Response.json(rows[0]);14}15 16export async function PUT(request: Request, { params }: { params: Promise<{ id: string }> }) {17 const { id } = await params;18 const { name } = await request.json();19 20 const [rows] = await db21 .update(usersTable)22 .set({ name })23 .where(eq(usersTable.id, Number(id)));24 25 return Response.json(rows);26}27 28export async function DELETE(request: Request, { params }: { params: Promise<{ id: string }> }) {29 const { id } = await params;30 const [rows] = await db.delete(usersTable).where(eq(usersTable.id, Number(id)));31 return Response.json(rows);32} ``` **3.** Create a client component in ./components/DBTest.tsx with the following content: DBText.tsx ```typescript 1"use client";2 3import { usersTable } from "@/schema";4import { ComponentProps, useCallback, useEffect, useState } from "react";5 6type UserRecord = typeof usersTable.$inferSelect;7 8export function DBTest() {9 const [users, setUsers] = useState([]);10 const [nameValue, setNameValue] = useState("");11 12 const fetchUsers = useCallback(async () => {13 const response = await fetch("/api/users");14 const data = await response.json();15 setUsers(data);16 }, []);17 18 const createUser = async () => {19 await fetch("/api/users", {20 method: "POST",21 body: JSON.stringify({ name: nameValue }),22 });23 24 await fetchUsers();25 };26 27 const updateUser = async (user: UserRecord) => {28 const newName = `${user.name.split(" - ")[0]} - ${new Date().toISOString()}`;29 30 await fetch(`/api/users/${user.id}`, {31 method: "PUT",32 body: JSON.stringify({ name: newName }),33 });34 35 await fetchUsers();36 };37 38 const deleteUser = async (id: UserRecord["id"]) => {39 await fetch(`/api/users/${id}`, { method: "DELETE" });40 await fetchUsers();41 };42 43 const handleFormSubmit: ComponentProps<"form">["onSubmit"] = async (event) => {44 event.preventDefault();45 await createUser();46 setNameValue("");47 };48 49 useEffect(() => {50 fetchUsers();51 }, [fetchUsers]);52 53 return (54
55

Users

56 57 61 setNameValue(event.target.value)}68 />69 73 Add74 75 76 77
    78 {users.map((user) => (79
  • 80

    81 {user.id} - {user.name}82

    83 84 deleteUser(user.id)}86 className="ml-2"87 >88 Delete89 90
  • 91 ))}92
93
94 );95} ``` **4.** Add the following code at ./app/page.tsx: page.js ```typescript 1import { DBTest } from "../components/DBTest";2 3export default function Home() {4 return (5
6 7
8 );9} ``` **5.** Build the project by running: Bash ```bash 1npm run build ``` **6.** Start the project by running: Bash ```bash 1npm run start ``` **7.** Finally, open [http://localhost:3000](http://localhost:3000) in your browser to test the application. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fdrizzle%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more Drizzle ORM documentation Learn more Next.js documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/nextjs/http/ # How to connect a Next.js app to SingleStore via HTTP Learn how to connect your Next.js app to a SingleStore database via HTTP. This step-by-step tutorial covers setup, environment configuration, connection management, and SQL queries. # How to connect a Next.js app to SingleStore via HTTP ## On this guide In this guide, you’ll learn how to connect a [Next.js](https://nextjs.org/) application to SingleStore using its HTTP [Data API](https://docs.singlestore.com/cloud/reference/data-api/). We’ll walk you through creating a deployment, workspace, and database in the SingleStore Portal, retrieving your connection credentials, and configuring your Next.js project with environment variables. Finally, you’ll implement a reusable helper function to execute and query SQL statements over HTTP, giving you a solid foundation for building applications on SingleStore. ### **Prerequisites** - SingleStore account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1.Create a .env file in the root of your project. 2. In this file, define your connection details by adding the following variables: .env ```bash 1DB_USER=""2DB_PASSWORD=""3DB_HOST=""4DB_PORT=""5DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Then, you’ll add helper functions to query your database at ./db.js: db.js ```javascript 1import { Buffer } from "buffer";2 3const { DB_USER, DB_PASSWORD, DB_HOST, DB_NAME } = process.env ?? {};4const CREDENTIALS = Buffer.from(`${DB_USER}:${DB_PASSWORD}`).toString("base64");5 6export async function request(url, body) {7 const response = await fetch(`https://${DB_HOST}/api/v2${url}`, {8 body,9 method: "POST",10 headers: {11 "Content-Type": "application/json",12 Authorization: `Basic ${CREDENTIALS}`,13 },14 });15 16 if (!response.ok) {17 const text = await response.text();18 throw new Error(`${response.status} ${response.statusText}\n${text}`);19 }20 21 return response.json();22}23 24export async function query(sql, database = DB_NAME) {25 return request("/query/rows", JSON.stringify({ sql, database }));26}27 28export async function execute(sql, database = DB_NAME) {29 return request("/exec", JSON.stringify({ sql, database }));30} ``` - execute ( [/api/v2/exec](https://docs.singlestore.com/cloud/reference/data-api/data-api-endpoint-reference/exec/) )Executes SQL statements without returning result sets, typically used for DDL and DML operations (e.g., CREATE TABLE, INSERT, UPDATE, DELETE). - query ( [/api/v2/query/rows](https://docs.singlestore.com/cloud/reference/data-api/data-api-endpoint-reference/query-rows/) )Executes SQL statements and returns result sets typically used for SELECT queries. Each row in the result set is represented as an object mapping column names to their corresponding values. ## Create database schema **1.** Create a db-init.js file in the root of your project with the following script for creating a database schema: db-setup.js ```javascript 1import { execute } from "./db";2 3async function main() {4 try {5 console.log("Create users table");6 7 const createTableSQL = `8 CREATE TABLE IF NOT EXISTS users (9 id BIGINT AUTO_INCREMENT PRIMARY KEY,10 name VARCHAR(255) NOT NULL11 )12 `;13 14 await execute(createTableSQL);15 } catch (error) {16 console.error(error);17 }18}19 20main(); ``` **2.** Execute the script by running the following command in your terminal: Bash ```bash 1npx dotenv-cli -- npx tsx ./db-setup.js ``` Once this is done, you should have a database with a table of users ready to use. ## Query database Once you’ve added the above code, let’s test to make sure that the connection is working as anticipated. [Next.js route handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) let you create custom request handlers for a given route using the Web Request and Response APIs. Follow these steps to implement an example app: **1.** Create a route.js file at ./app/api/users with the following content to handle requests for retrieving and creating users: route.js ```javascript 1import { query, execute } from "../../../db";2 3export async function GET() {4 const sql = "SELECT id, name FROM users";5 const rows = (await query(sql)).results[0].rows ?? [];6 return Response.json(rows);7}8 9export async function POST(request) {10 const { name } = await request.json();11 const sql = `INSERT INTO users (name) VALUES ('${name}')`;12 const result = await execute(sql);13 return Response.json(result);14} ``` **2.** Create a route.js file at ./app/api/users/[id] with the following content to handle requests for retrieving a user by ID, updating a user's name, and deleting a user: route.js ```javascript 1import { query, execute } from "../../../../db";2 3export async function GET(request, { params }) {4 const { id } = await params;5 const sql = `SELECT id, name FROM users WHERE id = ${id}`;6 const result = (await query(sql)).results[0].rows[0];7 return Response.json(result);8}9 10export async function PUT(request, { params }) {11 const { id } = await params;12 const { name } = await request.json();13 const sql = `UPDATE users SET name = '${name}' WHERE id = ${id}`;14 const result = await execute(sql);15 return Response.json(result);16}17 18export async function DELETE(request, { params }) {19 const { id } = await params;20 const sql = `DELETE FROM users WHERE id = ${id}`;21 const result = await execute(sql);22 return Response.json(result);23} ``` **3.** Create a client component in ./components/DBTest.jsx with the following content: DBText.jsx ```javascript 1"use client";2 3import { useCallback, useEffect, useState } from "react";4 5export function DBTest() {6 const [users, setUsers] = useState([]);7 const [nameValue, setNameValue] = useState("");8 9 const fetchUsers = useCallback(async () => {10 const response = await fetch("/api/users");11 const data = await response.json();12 setUsers(data);13 }, []);14 15 const createUser = async () => {16 await fetch("/api/users", {17 method: "POST",18 body: JSON.stringify({ name: nameValue }),19 });20 21 await fetchUsers();22 };23 24 const updateUser = async (user) => {25 const newName = `${user.name.split(" - ")[0]} - ${new Date().toISOString()}`;26 27 await fetch(`/api/users/${user.id}`, {28 method: "PUT",29 body: JSON.stringify({ name: newName }),30 });31 32 await fetchUsers();33 };34 35 const deleteUser = async (id) => {36 await fetch(`/api/users/${id}`, { method: "DELETE" });37 await fetchUsers();38 };39 40 const handleFormSubmit = async (event) => {41 event.preventDefault();42 await createUser();43 setNameValue("");44 };45 46 useEffect(() => {47 fetchUsers();48 }, [fetchUsers]);49 50 return (51
52

Users

53 54 58 setNameValue(event.target.value)}65 />66 70 Add71 72 73 74
    75 {users.map((user) => (76
  • 77

    78 {user.id} - {user.name}79

    80 81 deleteUser(user.id)}83 className="ml-2"84 >85 Delete86 87
  • 88 ))}89
90
91 );92} ``` **4.** Add the following code at ./app/page.js: page.js ```javascript 1import { DBTest } from "../components/DBTest";2 3export default function Home() {4 return (5
6 7
8 );9} ``` **5.** Build the project by running: Bash ```bash 1npm run build ``` **6.** Start the project by running: Bash ```bash 1npm run start ``` **7.** Finally, open [http://localhost:3000](http://localhost:3000) in your browser to test the application. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fhttp%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more SingleStore’s Data API documentation Learn more Next.js documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/nextjs/mongodb/ # How to connect a Next.js app to SingleStore Kai using the MongoDB driver | Developers Hub Learn how to connect your Next.js app to a SingleStore Kai database using the MongoDB driver. # How to connect a Next.js app to SingleStore using the MongoDB driver **Updated Dec. 3, 2026:** SingleStore Kai™, the MongoDB® API layer this tutorial uses, is in maintenance mode for existing customers, and SingleStore does not recommend it for new workloads or clusters. For new MongoDB projects, keep MongoDB as the application database, replicate its collections into SingleStore with [change data capture pipelines](https://docs.singlestore.com/cloud/load-data/data-sources/replicate-data-from-mongodb/) and analyze them there with SQL. The [SingleStore and MongoDB comparison](https://www.singlestore.com/comparisons/mongodb/) shows which workloads fit each database. ## On this guide This guide walks you through the steps to connect a [Next.js](https://nextjs.org/) application to a SingleStore database using the [MongoDB driver](https://www.npmjs.com/package/mongodb). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your [Next.js](https://nextjs.org/) project by installing the [mongodb](https://www.npmjs.com/package/mongodb) package, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ### **Prerequisites** - SingleStore account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Enable **SingleStore Kai**. 5. Click **Create Workspace**. 6. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. Enable **SingleStore Kai**. 6. Follow the on‑screen instructions to complete the form. 7. Click **Create Workspace**. 8. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-database-credentials#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-database-credentials&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **MongoDB Client**. 7. In the **MongoDB Client**tab, copy the connection string. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1.Create a .env file in the root of your project. 2. In this file, define your connection string and database name by adding DB_URL and DB_NAME variables, for example: .env ```bash 1DB_URL="mongodb://:@:/?authMechanism=PLAIN&tls=true&loadBalanced=true"2DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, install the [mongodb](https://www.npmjs.com/package/mongodb) NPM package by running the following command: Bash ```bash 1npm i mongodb ``` ## Establish database connection In the root directory of your project, create a db.js file with the following content to define a helper function that establishes a database connection: db.js ```javascript 1import { MongoClient } from "mongodb";2 3export async function connectDB() {4 const client = new MongoClient(process.env.DB_URL);5 await client.connect();6 const db = client.db(process.env.DB_NAME);7 8 return db;9} ``` ## Query database Once you’ve added the above code, let’s test to make sure that the connection is working as anticipated. [Next.js route handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) let you create custom request handlers for a given route using the Web Request and Response APIs. Follow these steps to implement an example app: **1.** Create a route.js file at ./app/api/users with the following content to handle requests for retrieving and creating users: route.js ```javascript 1import { connectDB } from "../../../db";2 3export async function GET() {4 const db = await connectDB();5 const rows = await db.collection("users").find().toArray();6 return Response.json(rows);7}8 9export async function POST(request) {10 const { name } = await request.json();11 const db = await connectDB();12 const result = await db.collection("users").insertOne({ name });13 return Response.json(result);14} ``` **2.** Create a route.js file at ./app/api/users/[id] with the following content to handle requests for retrieving a user by ID, updating a user's name, and deleting a user: route.js ```javascript 1import { connectDB } from "../../../../db";2import { ObjectId } from "mongodb";3 4export async function GET(request, { params }) {5 const { id } = await params;6 const db = await connectDB();7 const row = await db.collection("users").findOne({ _id: new ObjectId(id) });8 return Response.json(row);9}10 11export async function PUT(request, { params }) {12 const { id } = await params;13 const { name } = await request.json();14 const db = await connectDB();15 console.log({ id, name });16 const result = await db.collection("users").updateOne({ _id: new ObjectId(id) }, { $set: { name } });17 console.log(result);18 return Response.json(result);19}20 21export async function DELETE(request, { params }) {22 const { id } = await params;23 const db = await connectDB();24 const result = await db.collection("users").deleteOne({ _id: new ObjectId(id) });25 return Response.json(result);26} ``` **3.** Create a client component in ./components/DBTest.jsx with the following content: DBText.jsx ```javascript 1"use client";2 3import { useCallback, useEffect, useState } from "react";4 5export function DBTest() {6 const [users, setUsers] = useState([]);7 const [nameValue, setNameValue] = useState("");8 9 const fetchUsers = useCallback(async () => {10 const response = await fetch("/api/users");11 const data = await response.json();12 setUsers(data);13 }, []);14 15 const createUser = async () => {16 await fetch("/api/users", {17 method: "POST",18 body: JSON.stringify({ name: nameValue }),19 });20 21 await fetchUsers();22 };23 24 const updateUser = async (user) => {25 const newName = `${user.name.split(" - ")[0]} - ${new Date().toISOString()}`;26 27 await fetch(`/api/users/${user._id}`, {28 method: "PUT",29 body: JSON.stringify({ name: newName }),30 });31 32 await fetchUsers();33 };34 35 const deleteUser = async (id) => {36 await fetch(`/api/users/${id}`, { method: "DELETE" });37 await fetchUsers();38 };39 40 const handleFormSubmit = async (event) => {41 event.preventDefault();42 await createUser();43 setNameValue("");44 };45 46 useEffect(() => {47 fetchUsers();48 }, [fetchUsers]);49 50 return (51
52

Users

53 54 58 setNameValue(event.target.value)}65 />66 70 Add71 72 73 74
    75 {users.map((user) => (76
  • 77

    78 {user._id} - {user.name}79

    80 81 deleteUser(user._id)}83 className="ml-2"84 >85 Delete86 87
  • 88 ))}89
90
91 );92} ``` **4.** Add the following code at ./app/page.js: page.js ```javascript 1import { DBTest } from "../components/DBTest";2 3export default function Home() {4 return (5
6 7
8 );9} ``` **5.** Build the project by running: Bash ```bash 1npm run build ``` **6.** Start the project by running: Bash ```bash 1npm run start ``` **7.** Finally, open [http://localhost:3000](http://localhost:3000) in your browser to test the application. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmongodb%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more SingleStore Kai documentation Learn more Next.js documentation Learn more MongoDB driver documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/nextjs/mysql2/ # How to connect a Next.js app to SingleStore using MySQL2 Learn how to connect your Next.js app to a SingleStore database using MySQL2. This step-by-step tutorial covers setup, environment configuration, connection management, and SQL queries. # How to connect a Next.js app to SingleStore using MySQL2 ## On this guide This guide walks you through the steps to connect a [Next.js](https://nextjs.org/) application to a SingleStore database using [MySQL2](https://sidorares.github.io/node-mysql2/docs). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your [Next.js](https://nextjs.org/) project by installing the [mysql2](https://www.npmjs.com/package/mysql2) package, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ### **Prerequisites** - SingleStore account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1.Create a .env file in the root of your project. 2. In this file, define your connection string by adding a DB_URL variable, for example: .env ```bash 1DB_URL="singlestore://:@:/" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, install the [mysql2](https://www.npmjs.com/package/mysql2) NPM package by running the following command: Bash ```bash 1npm install mysql2 ``` ## Establish database connection In the root directory of your project, create a db.js file with the following content to create a MySQL2 connection pool: db.js ```javascript 1import mysql from "mysql2/promise";2 3export const db = mysql.createPool(process.env.DB_URL); ``` ## Create database schema **1.** Create a db-init.js file in the root of your project with the following script for creating a database schema: db-setup.js ```javascript 1import { db } from "./db";2 3async function main() {4 try {5 console.log("Create users table");6 7 const createTableSQL = `8 CREATE TABLE IF NOT EXISTS users (9 id BIGINT AUTO_INCREMENT PRIMARY KEY,10 name VARCHAR(255) NOT NULL11 )12 `;13 14 await db.execute(createTableSQL);15 } catch (error) {16 console.error(error);17 }18}19 20main(); ``` **2.** Execute the script by running the following command in your terminal: Bash ```bash 1npx dotenv-cli -- npx tsx ./db-setup.js ``` Once this is done, you should have a database with a table of users ready to use. ## Query database Once you’ve added the above code, let’s test to make sure that the connection is working as anticipated. [Next.js route handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) let you create custom request handlers for a given route using the Web Request and Response APIs. Follow these steps to implement an example app: **1.** Create a route.js file at ./app/api/users with the following content to handle requests for retrieving and creating users: route.js ```javascript 1import { db } from "../../../db";2 3export async function GET() {4 const sql = "SELECT id, name FROM users";5 const [rows] = await db.query(sql);6 return Response.json(rows);7}8 9export async function POST(request) {10 const { name } = await request.json();11 const sql = "INSERT INTO users (name) VALUES (?)";12 const [rows] = await db.execute(sql, [name]);13 return Response.json(rows);14} ``` **2.** Create a route.js file at ./app/api/users/[id] with the following content to handle requests for retrieving a user by ID, updating a user's name, and deleting a user: route.js ```javascript 1import { db } from "../../../../db";2 3export async function GET(request, { params }) {4 const { id } = await params;5 const sql = "SELECT id, name FROM users WHERE id = ?";6 const [rows] = await db.query(sql, [id]);7 return Response.json(rows[0]);8}9 10export async function PUT(request, { params }) {11 const { id } = await params;12 const { name } = await request.json();13 const sql = "UPDATE users SET name = ? WHERE id = ?";14 const [rows] = await db.execute(sql, [name, id]);15 return Response.json(rows);16}17 18export async function DELETE(request, { params }) {19 const { id } = await params;20 const sql = "DELETE FROM users WHERE id = ?";21 const [rows] = await db.execute(sql, [id]);22 return Response.json(rows);23} ``` **3.** Create a client component in ./components/DBTest.jsx with the following content: DBText.jsx ```javascript 1"use client";2 3import { useCallback, useEffect, useState } from "react";4 5export function DBTest() {6 const [users, setUsers] = useState([]);7 const [nameValue, setNameValue] = useState("");8 9 const fetchUsers = useCallback(async () => {10 const response = await fetch("/api/users");11 const data = await response.json();12 setUsers(data);13 }, []);14 15 const createUser = async () => {16 await fetch("/api/users", {17 method: "POST",18 body: JSON.stringify({ name: nameValue }),19 });20 21 await fetchUsers();22 };23 24 const updateUser = async (user) => {25 const newName = `${user.name.split(" - ")[0]} - ${new Date().toISOString()}`;26 27 await fetch(`/api/users/${user.id}`, {28 method: "PUT",29 body: JSON.stringify({ name: newName }),30 });31 32 await fetchUsers();33 };34 35 const deleteUser = async (id) => {36 await fetch(`/api/users/${id}`, { method: "DELETE" });37 await fetchUsers();38 };39 40 const handleFormSubmit = async (event) => {41 event.preventDefault();42 await createUser();43 setNameValue("");44 };45 46 useEffect(() => {47 fetchUsers();48 }, [fetchUsers]);49 50 return (51
52

Users

53 54 58 setNameValue(event.target.value)}65 />66 70 Add71 72 73 74
    75 {users.map((user) => (76
  • 77

    78 {user.id} - {user.name}79

    80 81 deleteUser(user.id)}83 className="ml-2"84 >85 Delete86 87
  • 88 ))}89
90
91 );92} ``` **4.** Add the following code at ./app/page.js: page.js ```javascript 1import { DBTest } from "../components/DBTest";2 3export default function Home() {4 return (5
6 7
8 );9} ``` **5.** Build the project by running: Bash ```bash 1npm run build ``` **6.** Start the project by running: Bash ```bash 1npm run start ``` **7.** Finally, open [http://localhost:3000](http://localhost:3000) in your browser to test the application. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnextjs%2Fmysql2%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more Next.js documentation Learn more MySQL2 documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/nodejs/drizzle/ # How to connect a Node.js app to SingleStore using Drizzle ORM Learn how to connect your Node.js app to a SingleStore database using Drizzle ORM. # How to connect a Node.js app to SingleStore using Drizzle ORM ## On this guide This guide walks you through the steps to connect a [Node.js](https://nodejs.org/en) application to a SingleStore database using [Drizzle ORM](https://orm.drizzle.team/docs/get-started/singlestore-new). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your Node.js project by installing the [drizzle-orm](https://www.npmjs.com/package/drizzle-orm) and [drizzle-kit](https://www.npmjs.com/package/drizzle-kit) packages, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ### **Prerequisites** - SingleStore account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1. Create a .env file in the root of your project. 2. In this file, define your connection string by adding a DB_URL variable, for example: .env ```bash 1DB_URL="singlestore://:@:/" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, install the following NPM packages: Bash ```bash 1npm install drizzle-orm mysql22npm install -D drizzle-kit ``` 4. In the same terminal, install and configure[dotenv](https://www.npmjs.com/package/dotenv) to load your environment variables by running the following command: Bash ```bash 1npm install dotenv ``` 5. Then, you’ll need to import [dotenv](https://www.npmjs.com/package/dotenv) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., index.ts): index.ts ```typescript 1import 'dotenv/config' ``` ## Establish database connection In your application entry point, add the following code to establish a database connection: index.ts ```typescript 1import { drizzle } from "drizzle-orm/singlestore";2 3const db = drizzle(process.env.DB_URL ?? ""); ``` ## Create database schema using Drizzle ORM 1. Create a drizzle.config.ts file in the root of your project with the following content: drizzle.config.ts ```typescript 1import "dotenv/config";2import { defineConfig } from "drizzle-kit";3 4export default defineConfig({5 out: "./drizzle",6 schema: "./schema.ts",7 dialect: "singlestore",8 dbCredentials: {9 url: process.env.DB_URL ?? "",10 },11}); ``` 2. Create a schema.ts file in the root of your project and describe your database schema. For example: schema.ts ```typescript 1import { bigint, singlestoreTable, varchar } from "drizzle-orm/singlestore-core";2 3export const usersTable = singlestoreTable("users", {4 id: bigint({ mode: "number" }).autoincrement().primaryKey(),5 name: varchar({ length: 255 }).notNull(),6}); ``` 3. Push the schema into the database by running the following command: Bash ```bash 1npx drizzle-kit push ``` Once this is done, you should have a database with a table of users ready to use. ## Query database Let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point. index.ts ```typescript 1import "dotenv/config";2import { drizzle } from "drizzle-orm/singlestore";3import { usersTable } from "./schema";4import { eq } from "drizzle-orm";5 6const db = drizzle(process.env.DB_URL ?? "");7 8async function main() {9 try {10 console.log("Insert user");11 const insertUserResult = await db.insert(usersTable).values({ name: "John" });12 const insertedUserId = insertUserResult[0].insertId;13 console.log(insertUserResult);14 15 console.log("Select all users");16 const selectUsersResult = await db.select().from(usersTable);17 console.log(selectUsersResult);18 19 console.log("Select user");20 const [selectUserResult] = await db.select().from(usersTable).where(eq(usersTable.id, insertedUserId));21 console.log(selectUserResult);22 23 console.log("Update user");24 const updateUserResult = await db.update(usersTable).set({ name: "John Doe" }).where(eq(usersTable.id, insertedUserId));25 console.log(updateUserResult);26 27 console.log("Delete user");28 const [deleteUserResult] = await db.delete(usersTable).where(eq(usersTable.id, insertedUserId));29 console.log(deleteUserResult);30 } catch (error) {31 console.error(error);32 }33}34 35main(); ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1npx tsx ./index.ts ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fdrizzle%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more Node.js documentation Learn more Drizzle ORM documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/nodejs/http/ # How to connect a Node.js app to SingleStore via HTTP Learn how to connect your Node.js app to a SingleStore database via HTTP. This step-by-step tutorial covers setup, environment configuration, connection management, and SQL queries. # How to connect a Node.js app to SingleStore via HTTP ## On this guide In this guide, you’ll learn how to connect a [Node.js](https://nodejs.org/en) application to SingleStore using its HTTP [Data API](https://docs.singlestore.com/cloud/reference/data-api/). We’ll walk you through creating a deployment, workspace, and database in the SingleStore Portal, retrieving your connection credentials, and configuring your Node.js project with environment variables. Finally, you’ll implement a reusable helper function to execute and query SQL statements over HTTP, giving you a solid foundation for building applications on SingleStore. ## Prerequisites - SingleStore Account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fhttp%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1. Create a .env file in the root of your project. 2. In this file, define your connection details by adding the following variables: .env ```bash 1DB_USER=""2DB_PASSWORD=""3DB_HOST=""4DB_PORT=""5DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, install the [dotenv](https://www.npmjs.com/package/dotenv) NPM package to load your environment variables by running the following command: Bash ```bash 1npm install dotenv ``` 4. Then, you’ll need to import [dotenv](https://www.npmjs.com/package/dotenv) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., index.js): index.js ```javascript 1import 'dotenv/config' ``` 5. Finally, you’ll add helper functions to query your database: index.js ```javascript 1import { Buffer } from "buffer";2 3const { DB_USER, DB_PASSWORD, DB_HOST, DB_NAME } = process.env ?? {};4const CREDENTIALS = Buffer.from(`${DB_USER}:${DB_PASSWORD}`).toString("base64");5 6async function request(url, body) {7 const response = await fetch(`https://${DB_HOST}/api/v2${url}`, {8 body,9 method: "POST",10 headers: {11 "Content-Type": "application/json",12 Authorization: `Basic ${CREDENTIALS}`,13 },14 });15 16 if (!response.ok) {17 const text = await response.text();18 throw new Error(`${response.status} ${response.statusText}\n${text}`);19 }20 21 return response.json();22}23 24async function query(sql, database = DB_NAME) {25 return request("/query/rows", JSON.stringify({ sql, database }));26}27 28async function execute(sql, database = DB_NAME) {29 return request("/exec", JSON.stringify({ sql, database }));30} ``` - execute ( [/api/v2/exec](https://docs.singlestore.com/cloud/reference/data-api/data-api-endpoint-reference/exec/) ): Executes SQL statements without returning result sets, typically used for DDL and DML operations (e.g., CREATE TABLE, INSERT, UPDATE, DELETE). - query ( [/api/v2/query/rows](https://docs.singlestore.com/cloud/reference/data-api/data-api-endpoint-reference/query-rows/) ): Executes SQL statements and returns result sets typically used for SELECT queries. Each row in the result set is represented as an object mapping column names to their corresponding values. ## Query database Once you’ve added the above code, let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point (e.g., index.js). index.js ```javascript 1import "dotenv/config";2import { Buffer } from "buffer";3 4const { DB_USER, DB_PASSWORD, DB_HOST, DB_NAME } = process.env ?? {};5const CREDENTIALS = Buffer.from(`${DB_USER}:${DB_PASSWORD}`).toString("base64");6 7async function request(url, body) {8 const response = await fetch(`https://${DB_HOST}/api/v2${url}`, {9 body,10 method: "POST",11 headers: {12 "Content-Type": "application/json",13 "Authorization": `Basic ${CREDENTIALS}`,14 },15 });16 17 if (!response.ok) {18 const text = await response.text();19 throw new Error(`${response.status} ${response.statusText}\n${text}`);20 }21 22 return response.json();23}24 25async function query(sql, database = DB_NAME) {26 return request("/query/rows", JSON.stringify({ sql, database }));27}28 29async function execute(sql, database = DB_NAME) {30 return request("/exec", JSON.stringify({ sql, database }));31}32 33async function main() {34 try {35 console.log("Create users table");36 const createTableSQL = `37 CREATE TABLE IF NOT EXISTS users (38 id BIGINT AUTO_INCREMENT PRIMARY KEY,39 name VARCHAR(255) NOT NULL40 )41 `;42 43 await execute(createTableSQL);44 45 console.log("Insert user");46 const insertUserSQL = "INSERT INTO users (name) VALUES ('John')";47 const insertUserResult = await execute(insertUserSQL);48 const insertedUserId = insertUserResult.lastInsertId;49 console.log(insertUserResult);50 51 console.log("Select all users");52 const selectUsersSQL = "SELECT id, name FROM users";53 const selectUsersResult = await query(selectUsersSQL);54 console.dir(selectUsersResult, { depth: 5 });55 56 console.log("Select user");57 const selectUserSQL = `SELECT id, name FROM users WHERE id = ${insertedUserId}`;58 const selectUserResult = await query(selectUserSQL);59 console.dir(selectUserResult, { depth: 5 });60 61 console.log("Update user");62 const updateUserSQL = `UPDATE users SET name = 'John Doe' WHERE id = ${insertedUserId}`;63 const updateUserResult = await execute(updateUserSQL);64 console.log(updateUserResult);65 66 console.log("Delete user");67 const deleteUserSQL = `DELETE FROM users WHERE id = ${insertedUserId}`;68 const deleteUserResult = await execute(deleteUserSQL);69 console.log(deleteUserResult);70 } catch (error) {71 console.error(error);72 }73}74 75main(); ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1node ./index.js ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. SingleStore documentation Learn more SingleStore’s Data API documentation Learn more Node.js documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/nodejs/mongodb/ # How to connect a Node.js app to SingleStore Kai using the MongoDB driver | Developers Hub Learn how to connect your Node.js app to a SingleStore Kai database using the MongoDB driver. # How to connect a Node.js app to SingleStore Kai using the MongoDB driver **Updated Dec. 3, 2026:** SingleStore Kai™, the MongoDB® API layer this tutorial uses, is in maintenance mode for existing customers, and SingleStore does not recommend it for new workloads or clusters. For new MongoDB projects, keep MongoDB as the application database, replicate its collections into SingleStore with [change data capture pipelines](https://docs.singlestore.com/cloud/load-data/data-sources/replicate-data-from-mongodb/) and analyze them there with SQL. The [SingleStore and MongoDB comparison](https://www.singlestore.com/comparisons/mongodb/) shows which workloads fit each database. ## On this guide This guide walks you through the steps to connect a [Node.js](https://nodejs.org/en) application to a SingleStore database using the [MongoDB driver](https://www.npmjs.com/package/mongodb). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your Node.js project by installing the [mongodb](https://www.npmjs.com/package/mongodb) package, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ### **Prerequisites** - SingleStore account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Enable **SingleStore Kai**. 5. Click **Create Workspace**. 6. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. Enable **SingleStore Kai**. 6. Follow the on‑screen instructions to complete the form. 7. Click **Create Workspace**. 8. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-database-credentials#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-database-credentials&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **MongoDB Client**. 7. In the **MongoDB Client**tab, copy the connection string. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1.Create a .env file in the root of your project. 2. In this file, define your connection string and database name by adding DB_URL and DB_NAME variables, for example: .env ```bash 1DB_URL="mongodb://:@:/?authMechanism=PLAIN&tls=true&loadBalanced=true"2DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, install the [mongodb](https://www.npmjs.com/package/mongodb) NPM package by running the following command: Bash ```bash 1npm i mongodb ``` 4. In the same terminal, install and configure[dotenv](https://www.npmjs.com/package/dotenv) to load your environment variables by running the following command: Bash ```bash 1npm install dotenv ``` 5. Then, you’ll need to import [dotenv](https://www.npmjs.com/package/dotenv) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., index.js): index.js ```javascript 1import 'dotenv/config' ``` ## Establish workspace connection In your application entry point, add the following code to establish a workspace connection: index.js ```javascript 1import { MongoClient } from "mongodb";2 3const client = new MongoClient(process.env.DB_URL); ``` You now have everything set up to start querying your workspace. ## Query database Let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point. index.js ```javascript 1import "dotenv/config";2import { MongoClient } from "mongodb";3 4const client = new MongoClient(process.env.DB_URL);5 6async function main() {7 try {8 await client.connect();9 const db = client.db(process.env.DB_NAME);10 11 console.log("Insert user");12 const insertUserResult = await db.collection("users").insertOne({ name: "John" });13 const insertedUserId = insertUserResult.insertedId;14 console.log(insertUserResult);15 16 console.log("Select all users");17 const selectUsersResult = await db.collection("users").find().toArray();18 console.log(selectUsersResult);19 20 console.log("Select user");21 const selectUserResult = await db.collection("users").findOne({ _id: insertedUserId });22 console.log(selectUserResult);23 24 console.log("Update user");25 const updateUserResult = await db.collection("users").updateOne({ _id: insertedUserId }, { $set: { name: "John Doe" } });26 console.log(updateUserResult);27 28 console.log("Delete user");29 const deleteUserResult = await db.collection("users").deleteOne({ _id: insertedUserId });30 console.log(deleteUserResult);31 } catch (error) {32 console.error(error);33 }34}35 36main(); ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1node ./index.js ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmongodb%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more SingleStore Kai documentation Learn more Node.js documentation Learn more MongoDB driver documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/nodejs/mysql2/ # How to connect a Node.js app to SingleStore using MySQL2 Learn how to connect your Node.js app to a SingleStore database using the MySQL2 driver. # How to connect a Node.js app to SingleStore using MySQL2 ## On this guide This guide walks you through the steps to connect a [Node.js](https://nodejs.org/en) application to a SingleStore database using [MySQL2](https://sidorares.github.io/node-mysql2/docs). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your Node.js project by installing the [mysql2](https://www.npmjs.com/package/mysql2) package, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ### **Prerequisites** - SingleStore account - Node.js Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1.Create a .env file in the root of your project. 2. In this file, define your connection string by adding a DB_URL variable, for example: .env ```bash 1DB_URL="singlestore://:@:/" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, install the [mysql2](https://www.npmjs.com/package/mysql2) NPM package by running the following command: Bash ```bash 1npm install mysql2 ``` 4. In the same terminal, install and configure[dotenv](https://www.npmjs.com/package/dotenv) to load your environment variables by running the following command: Bash ```bash 1npm install dotenv ``` 5. Then, you’ll need to import [dotenv](https://www.npmjs.com/package/dotenv) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., index.js): index.js ```javascript 1import 'dotenv/config' ``` ## Establish database connection In your application entry point, add the following code to establish a database connection: index.js ```javascript 1import mysql from "mysql2/promise";2 3const db = mysql.createPool(process.env.DB_URL); ``` You now have everything set up to start querying your database. ## Query database Let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point. index.js ```javascript 1import "dotenv/config";2import mysql from "mysql2/promise";3 4const db = mysql.createPool(process.env.DB_URL);5 6async function main() {7 try {8 console.log("Create users table");9 const createTableSQL = `10 CREATE TABLE IF NOT EXISTS users (11 id BIGINT AUTO_INCREMENT PRIMARY KEY,12 name VARCHAR(255) NOT NULL13 )14 `;15 16 await db.execute(createTableSQL);17 18 console.log("Insert user");19 const insertUserSQL = "INSERT INTO users (name) VALUES (?)";20 const insertUserResult = await db.execute(insertUserSQL, ["John"]);21 const insertedUserId = insertUserResult[0].insertId;22 console.log(insertUserResult);23 24 console.log("Select all users");25 const selectUsersSQL = "SELECT id, name FROM users";26 const selectUsersResult = await db.query(selectUsersSQL);27 console.log(selectUsersResult);28 29 console.log("Select user");30 const selectUserSQL = "SELECT id, name FROM users WHERE id = ?";31 const selectUserResult = await db.query(selectUserSQL, [insertedUserId]);32 console.log(selectUserResult);33 34 console.log("Update user");35 const updateUserSQL = "UPDATE users SET name = ? WHERE id = ?";36 const updateUserResult = await db.execute(updateUserSQL, ["John Doe", insertedUserId]);37 console.log(updateUserResult);38 39 console.log("Delete user");40 const deleteUserSQL = "DELETE FROM users WHERE id = ?";41 const deleteUserResult = await db.execute(deleteUserSQL, [insertedUserId]);42 console.log(deleteUserResult);43 } catch (error) {44 console.error(error);45 }46}47 48main(); ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1node ./index.js ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fnodejs%2Fmysql2%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more Node.js documentation Learn more MySQL2 documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/python/http/ # How to connect a Python app to SingleStore via HTTP Learn how to connect your Python app to a SingleStore database using HTTP. This step-by-step tutorial covers setup, environment configuration, connection management, and SQL queries. # How to connect a Python app to SingleStore via HTTP ## On this guide In this guide, you’ll learn how to connect a [Python](https://nodejs.org/en) application to SingleStore using its HTTP [Data API](https://docs.singlestore.com/cloud/reference/data-api/). We’ll walk you through creating a deployment, workspace, and database in the SingleStore Portal, retrieving your connection credentials, and configuring your Python project with environment variables. Finally, you’ll implement a reusable helper function to execute and query SQL statements over HTTP, giving you a solid foundation for building applications on SingleStore. ## Prerequisites - SingleStore Account - Python Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1. Create a .env file in the root of your project. 2. In this file, define your connection details by adding the following variables: .env ```bash 1DB_USER=""2DB_PASSWORD=""3DB_HOST=""4DB_PORT=""5DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, create (if you haven't already) and activate a Python virtual environment by running the following commands: Bash ```bash 1python3 -m venv ./.venv2source ./.venv/bin/activate ``` 4. In the same terminal, install the [requests](https://pypi.org/project/requests/) package to handle REST API requests by running the following command: Bash ```bash 1pip install requests ``` 5. Install and configure [dotenv](https://pypi.org/project/python-dotenv/) to load your environment variables by running the following command: Bash ```bash 1pip install python-dotenv ``` 6. Then, you’ll need to import [dotenv](https://pypi.org/project/python-dotenv/) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., app.py): app.py ```python 1from dotenv import load_dotenv2 3load_dotenv() ``` 7. Finally, you’ll add helper functions to query your database: app.py ```python 1import os2import json3import base644import requests5from dotenv import load_dotenv6 7load_dotenv()8 9DB_USER = os.getenv("DB_USER")10DB_PASSWORD = os.getenv("DB_PASSWORD")11DB_HOST = os.getenv("DB_HOST")12DB_NAME = os.getenv("DB_NAME")13 14credentials_raw = f"{DB_USER}:{DB_PASSWORD}"15CREDENTIALS = base64.b64encode(credentials_raw.encode()).decode()16 17 18def request(endpoint: str, body: str) -> dict:19 url = f"https://{DB_HOST}/api/v2{endpoint}"20 headers = {21 "Content-Type": "application/json",22 "Authorization": f"Basic {CREDENTIALS}",23 }24 25 response = requests.post(url, data=body, headers=headers)26 27 if not response.ok:28 text = response.text29 raise Exception(f"{response.status_code} {response.reason}\n{text}")30 31 return response.json()32 33 34def query(sql: str, database: str = DB_NAME) -> dict:35 payload = {"sql": sql, "database": database}36 return request("/query/rows", json.dumps(payload))37 38 39def execute(sql: str, database: str = DB_NAME) -> dict:40 payload = {"sql": sql, "database": database}41 return request("/exec", json.dumps(payload)) ``` - execute ( [/api/v2/exec](https://docs.singlestore.com/cloud/reference/data-api/data-api-endpoint-reference/exec/) )Executes SQL statements without returning result sets, typically used for DDL and DML operations (e.g., CREATE TABLE, INSERT, UPDATE, DELETE). - query ( [/api/v2/query/rows](https://docs.singlestore.com/cloud/reference/data-api/data-api-endpoint-reference/query-rows/) )Executes SQL statements and returns result sets typically used for SELECT queries. Each row in the result set is represented as an object mapping column names to their corresponding values. ## Query database Let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point. app.py ```python 1import os2import json3import base644import requests5from dotenv import load_dotenv6 7load_dotenv()8 9DB_USER = os.getenv("DB_USER")10DB_PASSWORD = os.getenv("DB_PASSWORD")11DB_HOST = os.getenv("DB_HOST")12DB_NAME = os.getenv("DB_NAME")13 14credentials_raw = f"{DB_USER}:{DB_PASSWORD}"15CREDENTIALS = base64.b64encode(credentials_raw.encode()).decode()16 17 18def request(endpoint: str, body: str) -> dict:19 url = f"https://{DB_HOST}/api/v2{endpoint}"20 headers = {21 "Content-Type": "application/json",22 "Authorization": f"Basic {CREDENTIALS}",23 }24 25 response = requests.post(url, data=body, headers=headers)26 27 if not response.ok:28 text = response.text29 raise Exception(f"{response.status_code} {response.reason}\n{text}")30 31 return response.json()32 33 34def query(sql: str, database: str = DB_NAME) -> dict:35 payload = {"sql": sql, "database": database}36 return request("/query/rows", json.dumps(payload))37 38 39def execute(sql: str, database: str = DB_NAME) -> dict:40 payload = {"sql": sql, "database": database}41 return request("/exec", json.dumps(payload))42 43 44def main():45 try:46 print("Create users table")47 48 create_table_sql = """49 CREATE TABLE IF NOT EXISTS users (50 id BIGINT AUTO_INCREMENT PRIMARY KEY,51 name VARCHAR(255) NOT NULL52 );53 """54 55 execute(create_table_sql)56 57 print("Insert user")58 insert_user_sql = "INSERT INTO users (name) VALUES ('John');"59 insert_user_result = execute(insert_user_sql)60 inserted_user_id = insert_user_result.get("lastInsertId")61 print(insert_user_result)62 63 print("Select all users")64 select_users_sql = "SELECT id, name FROM users;"65 select_users_result = query(select_users_sql)66 print(select_users_result)67 68 print("Select user")69 select_user_sql = f"SELECT id, name FROM users WHERE id = {inserted_user_id};"70 select_user_result = query(select_user_sql)71 print(select_user_result)72 73 print("Update user")74 update_user_sql = f"UPDATE users SET name = 'John Doe' WHERE id = {inserted_user_id};"75 update_user_result = execute(update_user_sql)76 print(update_user_result)77 78 print("Delete user")79 delete_user_sql = f"DELETE FROM users WHERE id = {inserted_user_id};"80 delete_user_result = execute(delete_user_sql)81 print(delete_user_result)82 except Exception as error:83 print("Error:", error)84 85 86if __name__ == "__main__":87 main() ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1python ./app.py ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fhttp%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more SingleStore’s Data API documentation Learn more Python documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/python/mysql-connector-python/ # How to connect a Next.js app to SingleStore using mysql-connector-python | Developers Hub Learn how to connect your Python app to a SingleStore database using mysql-connector-python. # How to connect a Python app to SingleStore using mysql-connector-python ## On this guide This guide walks you through the steps to connect a [Python](https://www.python.org/) application to a SingleStore database using [mysql-connector-python](https://pypi.org/project/mysql-connector-python/). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your [Python](https://www.python.org/) project by installing the [mysql-connector-python](https://pypi.org/project/mysql-connector-python/) package, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ## Prerequisites - SingleStore Account - Python Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1. Create a .env file in the root of your project. 2. In this file, define your connection details by adding the following variables: .env ```bash 1DB_USER=""2DB_PASSWORD=""3DB_HOST=""4DB_PORT=""5DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, create (if you haven't already) and activate a Python virtual environment by running the following commands: Bash ```bash 1python3 -m venv ./.venv2source ./.venv/bin/activate ``` 4. Install the [mysql-connector-python](https://pypi.org/project/mysql-connector-python/) PyPI package by running the following command: Bash ```bash 1pip install mysql-connector-python ``` 5. In the same terminal, install and configure [dotenv](https://pypi.org/project/python-dotenv/) to load your environment variables by running the following command: Bash ```bash 1pip install python-dotenv ``` Then, you’ll need to import [dotenv](https://pypi.org/project/python-dotenv/) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., app.py): app.py ```python 1from dotenv import load_dotenv2 3load_dotenv() ``` ## Establish database connection In your application entry point, add the following code to establish a database connection: app.py ```python 1import os2from dotenv import load_dotenv3import mysql.connector4 5load_dotenv()6 7db = mysql.connector.connect(8 user=os.getenv('DB_USER'),9 password=os.getenv('DB_PASSWORD'),10 host=os.getenv('DB_HOST'),11 port=int(os.getenv('DB_PORT', 3306)),12 database=os.getenv('DB_NAME')13) ``` You now have everything set up to start querying your database. ## Query database Let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point. app.py ```python 1import os2from dotenv import load_dotenv3import mysql.connector4 5load_dotenv()6 7db = mysql.connector.connect(8 user=os.getenv('DB_USER'),9 password=os.getenv('DB_PASSWORD'),10 host=os.getenv('DB_HOST'),11 port=int(os.getenv('DB_PORT', 3306)),12 database=os.getenv('DB_NAME')13)14 15 16def main():17 cursor = None18 try:19 cursor = db.cursor(dictionary=True)20 21 print("Create users table")22 create_table_sql = """23 CREATE TABLE IF NOT EXISTS users (24 id BIGINT AUTO_INCREMENT PRIMARY KEY,25 name VARCHAR(255) NOT NULL26 )27 """28 cursor.execute(create_table_sql)29 db.commit()30 31 print("Insert user")32 insert_user_sql = "INSERT INTO users (name) VALUES (%s)"33 cursor.execute(insert_user_sql, ("John",))34 db.commit()35 inserted_user_id = cursor.lastrowid36 print(f"Inserted user ID: {inserted_user_id}")37 38 print("Select all users")39 select_users_sql = "SELECT id, name FROM users"40 cursor.execute(select_users_sql)41 users = cursor.fetchall()42 print(users)43 44 print("Select user")45 select_user_sql = "SELECT id, name FROM users WHERE id = %s"46 cursor.execute(select_user_sql, (inserted_user_id,))47 user = cursor.fetchone()48 print(user)49 50 print("Update user")51 update_user_sql = "UPDATE users SET name = %s WHERE id = %s"52 cursor.execute(update_user_sql, ("John Doe", inserted_user_id))53 db.commit()54 print(f"Updated rows: {cursor.rowcount}")55 56 print("Delete user")57 delete_user_sql = "DELETE FROM users WHERE id = %s"58 cursor.execute(delete_user_sql, (inserted_user_id,))59 db.commit()60 print(f"Deleted rows: {cursor.rowcount}")61 except Exception as error:62 print("Error:", error)63 finally:64 if cursor:65 cursor.close()66 db.close()67 68 69if __name__ == "__main__":70 main() ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1python ./app.py ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fmysql-connector-python%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more mysql-connector-python documentation Learn more Python documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/python/pymysql/ # How to connect a Python app to SingleStore using PyMySQL Learn how to connect your Python app to a SingleStore database using PyMySQL. This step-by-step tutorial covers setup, environment configuration, connection management, and SQL queries. # How to connect a Python app to SingleStore using PyMySQL ## On this guide This guide walks you through the steps to connect a [Python](https://www.python.org/) application to a SingleStore database using [PyMySQL](https://pypi.org/project/PyMySQL/). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your [Python](https://www.python.org/) project by installing the [PyMySQL](https://pypi.org/project/PyMySQL/) package, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ## Prerequisites - SingleStore Account - Python Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1. Create a .env file in the root of your project. 2. In this file, define your connection details by adding the following variables: .env ```bash 1DB_USER=""2DB_PASSWORD=""3DB_HOST=""4DB_PORT=""5DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, create (if you haven't already) and activate a Python virtual environment by running the following commands: Bash ```bash 1python3 -m venv ./.venv2source ./.venv/bin/activate ``` 4. Install the [PyMySQL](https://pypi.org/project/PyMySQL/) PyPI package by running the following command: Bash ```bash 1pip install PyMySQL ``` 5. In the same terminal, install and configure [dotenv](https://pypi.org/project/python-dotenv/) to load your environment variables by running the following command: Bash ```bash 1pip install python-dotenv ``` Then, you’ll need to import [dotenv](https://pypi.org/project/python-dotenv/) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., app.py): app.py ```python 1from dotenv import load_dotenv2 3load_dotenv() ``` ## Establish database connection In your application entry point, add the following code to establish a database connection: app.py ```python 1import os2from dotenv import load_dotenv3import pymysql4 5load_dotenv()6 7db = pymysql.connect(8 host=os.getenv("DB_HOST"),9 port=int(os.getenv("DB_PORT", 3306)),10 user=os.getenv("DB_USER"),11 password=os.getenv("DB_PASSWORD"),12 database=os.getenv("DB_NAME"),13 cursorclass=pymysql.cursors.DictCursor14) ``` You now have everything set up to start querying your database. ## Query database Let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point. app.py ```python 1import os2from dotenv import load_dotenv3import pymysql4 5load_dotenv()6 7db = pymysql.connect(8 host=os.getenv("DB_HOST"),9 port=int(os.getenv("DB_PORT", 3306)),10 user=os.getenv("DB_USER"),11 password=os.getenv("DB_PASSWORD"),12 database=os.getenv("DB_NAME"),13 cursorclass=pymysql.cursors.DictCursor14)15 16 17def main():18 try:19 with db.cursor() as cursor:20 print("Create users table")21 create_table_sql = """22 CREATE TABLE IF NOT EXISTS users (23 id BIGINT AUTO_INCREMENT PRIMARY KEY,24 name VARCHAR(255) NOT NULL25 )26 """27 cursor.execute(create_table_sql)28 db.commit()29 30 print("Insert user")31 insert_user_sql = "INSERT INTO users (name) VALUES (%s)"32 cursor.execute(insert_user_sql, ("John",))33 db.commit()34 inserted_user_id = cursor.lastrowid35 print(f"Inserted user ID: {inserted_user_id}")36 37 print("Select all users")38 select_users_sql = "SELECT id, name FROM users"39 cursor.execute(select_users_sql)40 users = cursor.fetchall()41 print(users)42 43 print("Select user")44 select_user_sql = "SELECT id, name FROM users WHERE id = %s"45 cursor.execute(select_user_sql, (inserted_user_id,))46 user = cursor.fetchone()47 print(user)48 49 print("Update user")50 update_user_sql = "UPDATE users SET name = %s WHERE id = %s"51 cursor.execute(update_user_sql, ("John Doe", inserted_user_id))52 db.commit()53 print(f"Updated rows: {cursor.rowcount}")54 55 print("Delete user")56 delete_user_sql = "DELETE FROM users WHERE id = %s"57 cursor.execute(delete_user_sql, (inserted_user_id,))58 db.commit()59 print(f"Deleted rows: {cursor.rowcount}")60 except Exception as error:61 print("Error:", error)62 finally:63 db.close()64 65 66if __name__ == "__main__":67 main() ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1python ./app.py ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fpymysql%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more PyMySQL documentation Learn more Python documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/build/python/singlestoredb/ # How to connect a Python app to SingleStore using singlestoredb Learn how to connect your Python app to a SingleStore database using the singlestoredb driver. # How to connect a Python app to SingleStore using singlestoredb ## On this guide This guide walks you through the steps to connect a [Python](https://www.python.org/) application to a SingleStore database using [singlestoredb](https://pypi.org/project/singlestoredb/). You’ll start by setting up a SingleStore deployment and workspace, then create a database and retrieve your connection credentials. Finally, you’ll configure your [Python](https://www.python.org/) project by installing the [singlestoredb](https://pypi.org/project/singlestoredb/) package, loading environment variables, and establishing a connection to handle queries against your SingleStore instance. By the end, you’ll have a working example that you can use in your application. ## Prerequisites - SingleStore Account - Python Don’t have a SingleStore account yet? ## Set up your SingleStore environment - [Create deployment](https://www.singlestore.com/#create-deployment) - [Create workspace](https://www.singlestore.com/#create-workspace) - [Create database](https://www.singlestore.com/#create-database) - [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) ### **Create deployment** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-deployment#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-deployment&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F). 2. In the left-hand menu, click **Create New** → **Deployment**. 3. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 4. Click **Create Workspace**. 5. Wait for the workspace to finish deploying. ### **Create workspace** ***Note:****If the required workspace already exists in the target deployment, you can skip this step.* 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-workspace#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-workspace&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a workspace. 4. In the left‑hand pane, click **+ Create Workspace**. 5. In the **Create Workspace** form, follow the on‑screen instructions to complete the form. 6. Сlick **Create Workspace**. 7. Wait for the workspace to finish deploying. ### **Create database** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=create-database#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=create-database&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F). 2. In the left-hand menu, click **Deployments**. 3. From the deployments list, select the deployment where you want to create a database. 4. In the right‑hand pane, click **+ Create Database**. 5. In the **Create Database** form, enter a new database name and select the workspace to attach it to. 6. Click **Create Database**. ### **Retrieve database credentials** 1. [Log in to your SingleStore Portal account](https://portal.singlestore.com/intention/cloud?utm_source=yaroslav&utm_medium=developers-hub&utm_campaign=general-technical&utm_content=retrieve-creds#UA.utm_source=yaroslav&UA.utm_medium=developers-hub&UA.utm_campaign=general-technical&UA.utm_content=retrieve-creds&UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F). 2. In the left-hand menu, click **Deployments**. 3.From the deployments list, select the deployment that contains your database. 4. From the workspaces list, select the workspace to which your database is attached. 5. In the selected workspace, click **Connect**. 6. In the **Connect** dropdown, choose **SQL IDE**. 7. In the **SQL IDE** tab, copy the connection parameters. If you don’t know the password, click **Reset Password**, then copy the new password. ## Prepare environment 1. Create a .env file in the root of your project. 2. In this file, define your connection details by adding the following variables: .env ```bash 1DB_USER=""2DB_PASSWORD=""3DB_HOST=""4DB_PORT=""5DB_NAME="" ``` If you don’t know your connection string, see the [Retrieve database credentials](https://www.singlestore.com/#retrieve-database-credentials) section above. 3. Now, in a terminal pointing to the root directory of your project, create (if you haven't already) and activate a Python virtual environment by running the following commands: Bash ```bash 1python3 -m venv ./.venv2source ./.venv/bin/activate ``` 4. Install the [singlestoredb](https://pypi.org/project/singlestoredb/) PyPI package by running the following command: Bash ```bash 1pip install singlestoredb ``` 5. In the same terminal, install and configure [dotenv](https://pypi.org/project/python-dotenv/) to load your environment variables by running the following command: Bash ```bash 1pip install python-dotenv ``` Then, you’ll need to import [dotenv](https://pypi.org/project/python-dotenv/) into your application so you can retrieve the environment variables stored in your .env file. To do this, at the following import statement at the very top of your application entry point (e.g., app.py): app.py ```python 1from dotenv import load_dotenv2 3load_dotenv() ``` ## Establish database connection In your application entry point, add the following code to establish a database connection: app.py ```python 1import os2from dotenv import load_dotenv3import singlestoredb as s24 5load_dotenv()6 7db = s2.connect(8 user=os.getenv("DB_USER"),9 password=os.getenv("DB_PASSWORD"),10 host=os.getenv("DB_HOST"),11 port=int(os.getenv("DB_PORT", 3306)),12 database=os.getenv("DB_NAME"),13 results_type="dicts" # (Optional) Return query results as dictionaries14) ``` You now have everything set up to start querying your database. ## Query database Let’s test to make sure that the connection is working as anticipated. Here is an example of a simple code snippet you can add to your app's main function at the entry point. app.py ```python 1import os2from dotenv import load_dotenv3import singlestoredb as s24 5load_dotenv()6 7db = s2.connect(8 user=os.getenv("DB_USER"),9 password=os.getenv("DB_PASSWORD"),10 host=os.getenv("DB_HOST"),11 port=int(os.getenv("DB_PORT", 3306)),12 database=os.getenv("DB_NAME"),13 results_type="dicts" # (Optional) Return query results as dictionaries14)15 16 17def main():18 try:19 with db.cursor() as cursor:20 print("Create users table")21 create_table_sql = """22 CREATE TABLE IF NOT EXISTS users (23 id BIGINT AUTO_INCREMENT PRIMARY KEY,24 name VARCHAR(255) NOT NULL25 )26 """27 cursor.execute(create_table_sql)28 db.commit()29 30 print("Insert user")31 insert_user_sql = "INSERT INTO users (name) VALUES (%s)"32 cursor.execute(insert_user_sql, ("John",))33 db.commit()34 inserted_user_id = cursor.lastrowid35 print(f"Inserted user ID: {inserted_user_id}")36 37 print("Select all users")38 select_users_sql = "SELECT id, name FROM users"39 cursor.execute(select_users_sql)40 users = cursor.fetchall()41 print(users)42 43 print("Select user")44 select_user_sql = "SELECT id, name FROM users WHERE id = %s"45 cursor.execute(select_user_sql, (inserted_user_id,))46 user = cursor.fetchone()47 print(user)48 49 print("Update user")50 update_user_sql = "UPDATE users SET name = %s WHERE id = %s"51 cursor.execute(update_user_sql, ("John Doe", inserted_user_id))52 db.commit()53 print(f"Updated rows: {cursor.rowcount}")54 55 print("Delete user")56 delete_user_sql = "DELETE FROM users WHERE id = %s"57 cursor.execute(delete_user_sql, (inserted_user_id,))58 db.commit()59 print(f"Deleted rows: {cursor.rowcount}")60 except Exception as error:61 print("Error:", error)62 finally:63 db.close()64 65 66if __name__ == "__main__":67 main() ``` Once you’ve saved your changes, open a terminal, navigate to your project’s root directory, and run the test script: Bash ```bash 1python ./app.py ``` This will issue a query against your SingleStore instance, allowing you to see if connectivity was successful or if further troubleshooting is required. ## Error handling and troubleshooting ### **AUTH_FAILED** If you receive an `AUTH_FAILED` exception when trying to establish a connection to database, try the following steps to remedy the issue: ### Check your deployment's Firewall settings - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Firewall**. - In the **Secure Connection → Inbound**section, click **Edit**. - Add a new **IP**by clicking **Add New IP,**or choose **Allow access from anywhere**(not recommended). - Click **Save.** ### Check your password - [Log in to your SingleStore Portal account](https://portal.singlestore.com/?utm_source=www.singlestore.com&utm_medium=website&utm_content=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F#UA.utm_ref=%2Fdevelopers%2Fbuild%2Fpython%2Fsinglestoredb%2F). - In the left-hand menu, click **Deployments**. - From the deployments list, select the deployment that contains your database. - In the deployment top menu, click **Access**. - In the **User Access → Password**section, click **Reset.** - Generate or write a new password. - Click **Reset.** - Update the value of the `DB_URL` variable in the `.env` file at the root of the project. - Restart the application. SingleStore documentation Learn more singlestoredb documentation Learn more Python documentation Learn more ## Start building today Your intelligent apps are about to get even better --- Source: https://www.singlestore.com/developers/guides/ # Developer Guides | SingleStore How-tos and tutorials for developers. # Guides ## Topic ## SingleStore Database Cheat Sheet List of useful commands for SingleStore SQL operations. ## Choosing Rowstore or Columnstore? How to Pick the Right Engine for Your Workload This guide explores the architectural characteristics of each engine, provides decision criteria for selecting the right format for the workload, and demonstrates how unified storage architectures. ## A complete guide to vector databases With everything you need to know about vector databases, vector search, vector embeddings and much more. ## How To Stream Real-Time Data Into SingleStore From Estuary Flow with Dekaf Discover how Estuary Flow’s Dekaf enables seamless change data capture (CDC) for streaming data into SingleStore. This guide explores Dekaf’s key features, its integration with SingleStore, and step-by-step instructions for setting up a PostgreSQL data capture pipeline. ## Optimizing Table Data Structures Learn how to select the right shard, rowstore, and columnstore keys to improve performance and efficiency based on your workload. ## The Complete Guide to Scaling Elasticsearch Master the art of scaling Elasticsearch to enhance performance. Discover practical strategies and tips to optimize your setup. ## How to Fix MySQL Error: 'the table is full' The “table is full” MySQL error is one of the most frustrating errors you can encounter. Here's what it means and the steps to resolve it. ## How to Fix MySQL Error 1040: Too Many Connections Understand what the error means and how to resolve it with configuration tweaks and following best practices. ## How to Load 100 Billion Rows of Data Ultrafast Learn efficient strategies for loading massive datasets into SingleStore, focusing on pipelines, cluster setup, and best practices to swiftly upload and verify 100 billion rows of data. ## A Beginner’s Guide to Vector Embeddings The fundamentals of vector embeddings, including their types, applications and implementation. ## A Beginner's Guide to LangChain Explore the fundamentals of LangChain, including its core functionalities, a step-by-step tutorial to kickstart your journey, prompt templates, chain creation, and developing applications using a LangChain LLM. --- Source: https://www.singlestore.com/developers/migrate/ # Migration Guides | SingleStore Migration guides Start leveraging the SingleStore’s speed and scalability without unnecessary friction. # Migration guides Start leveraging the SingleStore’s speed and scalability without unnecessary friction. ## What’s your current database? **I'm migrating from...** - [MySQL](https://www.singlestore.com/blog/steps-to-migrate-from-mysql-to-singlestore/) - [Rockset](https://docs.singlestore.com/cloud/getting-started-with-singlestore-helios/migrate-from-rockset-to-singlestore/) - [Postgres](https://www.singlestore.com/blog/how-to-migrate-from-postgresql-to-singlestoredb/) - [MongoDB®](https://docs.singlestore.com/cloud/load-data/data-sources/replicate-data-from-mongodb/) - [PlanetScale](https://www.singlestore.com/free-database-tools/planetscale-to-singlestore-migrator/) **Docs:** [Migrating Data from Another Database](https://docs.singlestore.com/cloud/developer-resources/guides/migrating-data-from-another-database/) ## SingleStore vs. Others Not ready to switch? See how SingleStore compares to your current solution. SingleStore vs. Oracle 10x faster at 25% the cost, with powerful management tooling Read full comparison SingleStore vs. MongoDB Read full comparison SingleStore vs. PostgreSQL Handle highly concurrent OLTP and OLAP (Hybrid) workloads in a single system Read full comparison Github Discover tools, libraries, and integrations built to enhance your projects with SingleStore. Explore Webinars Our live and on-demand sessions cover best practices, use cases, and technical deep dives. Watch Forum Connect with developers and SingleStore experts to share insights and find solutions. Join Release notes Review the latest updates, improvements, and fixes that matter to your workflow. View changelog ## Change is scary. If you or your team need migration guidance, schedule some time with an engineer to discuss your use case and learn how SingleStore can best help you. --- Source: https://www.singlestore.com/made-on/arcules/ # Arcules Scales Video Surveillance and Analytics Platform with SingleStore to Support Thousands of Global Users Consumer-grade security systems made the leap from analog to cloud-enabled relatively quickly, but enterprise-grade technology lagged behind. # Arcules Scales AI-driven Video Surveillance and Analytics Platform with SingleStore to Support Thousands of Global Users Performance gains +20,000% Averages 100,000 inserts per second 100K/sec Response on complex queries and ingestion of surveillance video feeds <100ms Of concurrent users 1,000s Consumer-grade security systems made the leap from analog to cloud-enabled relatively quickly, but enterprise-grade technology lagged behind. These organizations found themselves wasting time on applying software updates, maintaining remote access, worrying about risk, and ripping out cameras when it switched systems. [Arcules](https://arcules.com/?utm_term=arcules&utm_campaign=Arcules+Brand&utm_source=adwords&utm_medium=ppc&hsa_acc=1974029333&hsa_net=adwords&hsa_grp=135163891594&hsa_ver=3&hsa_kw=arcules&hsa_tgt=kwd-867919749484&hsa_mt=e&hsa_ad=574600629006&hsa_src=g&hsa_cam=15858713274&gclid=CjwKCAjwo8-SBhAlEiwAopc9Wy2quTRGCSM49c8rKPZIEuX2jN95fJDicsxxpWcNaTIBsqU83R7myRoCD1kQAvD_BwE) has as its primary goal to make the world a safer place. This diverse and passionate team of security and cloud experts shared a desire to create the world’s most user-friendly, affordable, and flexible security surveillance system and insights solution. The platform Arcules developed offers an intuitive, cloud-native solution that uses AI to unify and make sense of the data from video  surveillance systems for security and beyond. The Arcules platform is device-agnostic, with a plug-and-play experience that uses a small edge hardware appliance to autodiscover and connect supported devices like IoT cameras, sensors, and access control panels to the platform. Users can view all their remote sites in one interface through the web interface or native Android and iOS mobile apps, making it ideal for multi-site distributed services including franchises such as WeWork. Arcules views its cloud platform as not only the future of security video, but also an all-inclusive analytics tool offering meaningful operational insights using the data from cameras, sensors, door controllers, and other devices. ## Challenges/Goals Many of the typical video surveillance management systems today for enterprises lack the concept of viewing all of its sites in a single, cloud-based package. Arcules caters to multi-site distributed services like franchises, where organizations have many locations without a single pane of control, by providing video surveillance-as-a-service. However, that’s not the only use it has in mind for its platform. While the main focus of its solution is security and surveillance, Arcules wanted to expand the system to offer analytics from video data to get more value from the data. To do so, it needed all-new architecture. Arcules was growing as a company, so it had to do something about scalability of the platform. A lot of what it had built originally as a startup was just to get off the ground and get its proof-of-concept in production. When it started to see adoption of the platform, it had to start web-scaling everything. Without this scaling capability, the user experience would suffer. The structure of the platform was built with microservices, but the underlying database was struggling. Arcules was already microservices-based, so it was on a good footing, but a lot of its database technologies behind the scenes weren’t ready for the scalability that its microservices provide. As part of a seamless user experience, Arcules needed a video index to allow the system to intelligently decide where the video data should come from. If the data is in the cloud and the user isn’t at the local site, then it can be accessed from the cloud. If the user is on-site, then they can access the local data. Arcules wanted to make the experience a lot cleaner and faster for the user, with the video data source abstracted away so it still feels like an on-premises security system. “We want our customers to experience very little lag,” said Rowe. ## Technology Requirements To enable real-time analytic processing of the data and a seamless user experience, Arcules needed a modern database that could deliver speed and scale at a cost-effective price. Rowe articulated Arcules’ main concern. “The biggest problem we had was scalability. We’d hit the vertical scaling limits of the databases before.” Arcules’ other concerns included: - Providing the correct solutions for customers, supporting its needs for fast data and real-time insights. - Offering the right fit for customers to meet the surveillance requirements for enterprises. - Creating a seamless experience for the user from a product perspective, to deliver as-good-as on-premises latency for its surveillance systems. The ideal database technology needed to deliver: - Real-time analytics and gap and island analysis on all video datasets - Ad-hoc requests of certain timeframes to generate data for the user - Support for Google Cloud (GC) - Processing speeds capable of returning results on 30 days of video data within 10 seconds for near-real-time accuracy - High availability and multi-region support ## Why SingleStore When Arcules originally launched its platform, it used MySQL as part of its bootstrapping process. Arcules switched to PostgreSQL for better security and data segregation, using Google Cloud SQL for a fully-managed relational database. It  developed its platform using containerized microservices on Google Kubernetes Engine (GKE), connecting to the data through Cloud SQL Proxy sidecars. However, this setup could not keep up with Arcules’ success, as PostgreSQL had a lack of horizontal scaling. The team started exploring other database options four years ago. PlanetScale didn’t work for its use case, and while ElasticSearch solved the use case issue, it was cost-prohibitive. Then SingleStore appeared on its radar. SingleStore is built for data intensity and provides a robust feature set capable of powering and scaling Arcules’ platform: - Vector data functionality is built right into the core SingleStore platform so Arcules can power AI-driven applications without a separate, purpose-built vector database - Run anywhere capabilities support Arcules’ deployment on its on-premises Kubernetes cluster and GC - Universal storage offers a patented single table type for transactions and analytics, reducing latency by bringing these workloads together - Compatibility with ANSI SQL for a smooth transition from PostgreSQL - Fast ingestion for keeping up with continual surveillance video feeds - Pure speed for fast transactions, queries, and analytical processing One of the things the team likes best about SingleStore is that it heavily compresses the data. The raw data ingested into the database versus the actual data that SingleStore stores is radically different because Arcules compress it by at least 90% all the time. ## Solution Arcules uses SingleStore to power its video indexing capabilities to support real-time video indexing, and fast data to improve the user experience and expand the platform’s capabilities. It opted for the SingleStore Self-Managed solution, hosting it on GC. Arcules runs off of three SingleStore production database clusters using four nodes, located in the United States, Europe, and Japan. They are high availability, with active failovers. These databases are supported by several development clusters. The data moves from the user’s cameras and IoT devices through the Arcules edge appliance to the Arcules gateway, which is its on-premises Kubernetes cluster. The data gets converted into a specialized format, and the metadata is propagated via Google Bucket in GC. This process auto-triggers to feed the data via a pub/sub model API into SingleStore. The index allows Arcules to intelligently decide where to grab the data from either the cloud or local systems. Arcules has a data-intensive platform, with 30 terabytes (TB) of data attached to the disks today, with 15-20 TB being utilized on a 30-day basis. A typical user channel has two-and-a-half gigabytes (GB) of video metadata. Users will request the data for specific timeframes. Arcules does gap and island analysis within SingleStore’s query language to generate data for the user, allowing them to quickly navigate through the video content without having to scrub the data. As a multi-tenant, global solution serving users in 15 countries, it took a few months for Arcules to determine the right shard key to ensure that the data was distributed properly. When running certain types of queries, such as gap and island analysis, teams try to keep the data on the same node, so they don’t have to jump the nodes and go to the aggregators. That’s where the more intelligent time bucketing concept comes into play. Arcules is using this method quite heavily inside SingleStore to do the gap and island analysis. The queries that Arcules runs to produce this time bucket analysis are complex and resource-intensive. It’s a full analysis that looks at the patterns within certain time boundaries. It modifies the query to smooth out the video to account for any packet drops. If the time between one video and the next is within a few hundred milliseconds, it gets ignored. Otherwise, the system performs other processes on it, such as generating heat maps, verifying door access, and counting people in a room. From an ingestion perspective, Arcules averages more than 100,000 inserts per second, but it varies. For example, the ingest and user concurrency are lower overnight because there’s not as much video being recorded. It can also see peaks and troughs in the usage because of SingleStore. ## Outcomes Arcules has gained serious advantages in real-time performance, scalability, and user experience as a result of choosing SingleStore: ### Real-Time Performance Gets Video Data to Users On Demand Users have a seamless experience as though the data is local because of SingleStore’s speed. Ingest speeds range from thousands to millions of rows per second, while the system averages approximately 250,000 inserts per second. Data query results on an hour’s worth of data and resilient ingestion have sub-second response times. For 30 days of data, with 2.7 million records, results arrive within 10 seconds. #### Robust Scalability Supports Thousands of Concurrent Users For the video feeds, Arcules is ingesting terabytes per day and has 30TB attached to the disks. However, the data it stores per channel is much lower at 2.5GB, thanks to the more than 90% compression rate of SingleStore. As Arcules grows, it’s now able to support thousands of users accessing the application simultaneously. #### Off-the-Charts Performance Improvements (20,000%) Arcules was one of the first startups to enter the surveillance market with a cloud-native, real-time solution, and the 20,000% performance improvements that SingleStore brought to the system had people shaking their heads in disbelief. Users didn’t believe it was that fast, and with SingleStore, the team has encountered that multiple times. Given that it was one of the first to enter the market with this kind of concept, users thought there was no way that was happening in real time. One of the field CTOs told the team they had to adjust the performance improvement numbers down from 20,000% to 1,000% because users didn’t believe the actual number. Arcules is looking towards the future for its data infrastructure with SingleStore. It plans to add more analytical data and other metadata types that may tie back to video in these database clusters, using them like a time series database. Another exciting plan on the horizon for Arcules is incorporating AI for basic array searching. For example, a user could say, “I need a red car and it needs to be within X area of my footage,” and they would receive matching results. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/armis/ # Armis Implements AI-Powered Threat Detection and Saves 70% on Data Pipeline Cost with SingleStore+Twingo on AWS Industry observers predict there will be 125 billion connected devices by 2030 . # Armis Implements AI-Powered Threat Detection and Saves 70% on Data Pipeline Cost with SingleStore+Twingo on AWS “Queries that would time out completely under ElasticSearch are now processing in less than 10 seconds with SingleStore, and some clock in under 1.5 seconds. We moved from the entire data pipeline including ElasticSearch costing more than $1 million annually to paying a fraction of that for SingleStore Helios, reducing our data pipeline cost by 70%.” Aviram Cohen Chief R&D Officer, Armis Events per day 100 billion Sessions per day 1.2 billion Rows per second loading complex data ~1 million Data sets in largest customer environments 30TB Cost reduction 70% Industry observers predict [there will be 125 billion connected devices by 2030](https://www.spiceworks.com/tech/iot/articles/by-2030-each-person-will-own-15-connected-devices-heres-what-that-means-for-your-business-and-content/). The number of unmanaged devices in the enterprise environment is rapidly growing, and organizations need a way to discover and secure it all. [Armis](https://www.armis.com/) was founded to help them do just that. Armis helps enterprises discover and secure managed, unmanaged and IoT devices, including medical devices and industrial control systems (ICS). Armis provides 100% end-to-end asset visibility through a real-time platform that offers granular, industry-specific device details and behavioral insights. The Armis Platform and Armis Asset Management collect data and draw insights from it, allowing enterprises to harness and act on a myriad of information in real time. “Our vision is to be the ‘Google Maps’ of your organization by giving you one place to discover every asset in your environment — armed with instant context around risk, vulnerability, threat assessment, and threat detection — then act on those insights to secure your assets.” Aviram Cohen Chief R&D Officer, Armis “Google Maps helps you find your way from point A to point B, but also provides a great deal of additional information and context that gives you a deeper understanding about not only specific locations and touchpoints but your overall environment,” said [Aviram Cohen](https://www.linkedin.com/in/aviramcohen/), Chief R&D Officer, Armis. “Our vision is to be the ‘Google Maps’ of your organization by giving you one place to discover every asset in your environment — armed with instant context around risk, vulnerability, threat assessment and threat detection — then act on those insights to secure your assets.” *Aviram Cohen,**Chief R&D Officer, Armis* ## Challenges/Goals Armis originally launched its platform using a PostgreSQL database. Over time, the time-based data set got too large for Postgres to handle. At this point the team migrated this data set from 400+ PostgresSQL databases into a huge Elasticsearch cluster (160 nodes). "Using Elasticseach seemed like a reasonable choice considering the vast knowledge of the team in that technology and the fact that we needed fast searches and aggregations over a large data set," said [Tomer Praizler](https://www.linkedin.com/in/tomer-praizler/), Chief Architect, Armis. It's just that we didn't realize how big this dataset is going to be, and what would it require from us to maintain it." The data properties themselves changed: the data in ElasticSearch increasingly became more and more mutable, as product requirements evolved. The Armis use case required a full reindex of the ElasticSearch cluster (close to 100B documents) due to the nature of the data, which is highly mutable. Although Elasticsearch can certainly support this kind of reindexing flow, considering the size of the cluster, it required a lot of infrastructure and protections to make this flow robust. “We used a lot of EKS resources for indexing, a very big Kafka cluster to buffer the indexing to Elasticsearch, and of course an EMR cluster to run periodically and fetch all updated entries from our data lake to be indexed again," said Praizler. *Tomer Praizler, Chief Architect, Armis* “Using Elasticseach seemed like a reasonable choice considering the vast knowledge of the team in that technology and the fact that we needed fast searches and aggregations over a large data set. It's just that we didn't realize how big this dataset is going to be, and what would it require from us to maintain it.” Tomer Praizler Chief Architect, Armis Armis was unable to scale with ElasticSearch, and worse, it was paying dearly for the privilege: the entire data pipeline including ElasticSearch cost more than $1 million annually. To support its comprehensive asset management platform and the customers who depend on it, Armis needed to: - Scale with high performance to meet growing data demands, as enterprises work with a growing variety of connected devices - Adhere to strict standards such as the Federal Risk and Authorization Management Program (FedRAMP) - Reduce the platform’s complexity and cost ## Technology Requirements Armis needed a database technology to fulfill its technical requirements, including: - Query SLAs of 1.5 seconds across three days’ worth of data; three seconds across seven days of data; and 10 seconds across more than 30 days of data to support real-time analytics - A solution it could deploy as both a managed service and an on-premises solution to meet FedRAMP on-premises requirements - The ability to frequently update lookups and effectively perform joins ## Why SingleStore Armis considered using Google BigQuery, but lack of multi-cloud support and absence of self-managed solutions were dealbreakers. “Then, in speaking with our customer base, we learned that most of them are SingleStore customers, and the more we heard, the more we liked,” said Cohen. Armis selected [SingleStore Self-Managed](https://www.singlestore.com/product-overview/) for the on-premises portion of its deployment to satisfy FedRAMP compliance, and [SingleStore Helios](https://www.singlestore.com/product-overview/) to support its cloud data strategy via AWS. Other features that helped close the deal included: - In-memory row stores and column stores in the same database - Petabyte scale - Security features built into SingleStore that Armis government clients require, including ISO 27001 and SOC 2 Type 2 ## Solution The Armis Platform, powered by SingleStore on AWS, collects various types of raw data (traffic, asset, user data and more) from various sources, processes, analyzes, enriches and aggregates it. This creates a full dynamic picture of all of the assets of its clients, which is accessible within the product by free queries on devices, IP session data, predefined metrics and more. SingleStore ingests billions of events per day and runs complex analytics in milliseconds to deliver AI-powered threat prediction, real-time anomaly detection and lightning-fast search. With SingleStore, Armis: - Ingests 100 billion events per day with real-time visibility - Loads a million rows of complex data per second - Manages 30TB datasets in its largest customer environments - Delivers 1.5-second query speed across three days’ worth of data [Twingo](https://bit.ly/3GwKQuv) represents, sells and deploys leading big data technologies. Experts in architectural design, Twingo helped Armis choose the right technology and provides the optimal big data solutions for complex problems. Twingo contributed to the POC for the SingleStore deployment at Armis, helping design the data cluster sizing, redesign queries, and optimize the model, then define and run the POC. Armis now has 32 managed SingleStore units, and each unit consists of 8 CPU cores, 64GB RAM, and a 2TB SSD. “Armis needed to move to a relational model to work with ultra high scale and at the same time, simplify the modeling. With SingleStore, Armis achieved a substantial reduction in complexity and a significant increase in performance.” Golan Nahum CEO, Twingo “With ElasticSearch, if a single device was updated, Armis needed to update backwards  three months’ worth of data,” said [Golan Nahum](https://www.linkedin.com/in/twingo/), CEO, Twingo. “Armis needed to move to a relational model to work with ultra high scale and at the same time, simplify the modeling. With SingleStore, Armis achieved a substantial reduction in complexity with a significant increase in performance and huge reduction in cost.” *Golan Nahum, CEO, Twingo* “Our partnership with Twingo helped us run a successful POC with minimal resources on our end. Thanks to Twingo’s experts, we avoided mistakes and created an optimized solution,” said Praizler. “They gave us continuous advice on how to progress and develop the system while pushing priorities for feature requests.” At present, Armis still uses PostgreSQL and Elasticsearch for smaller and transactional workloads, has already moved its largest data set from Elasticsearch to SingleStore and moved all analytical workloads from PostgreSQL to SingleStore. “Operations-wise, we simplified our pipeline with SingleStore, and things work much better than they did with ElasticSearch,” said  [Roy Franco](https://www.linkedin.com/in/roy-franco-47343027/), Data Infrastructure Team Leader, Armis. “We ingest this massive data pipeline, analyze streaming data, and allow users to drill down on everything,” he explained. “Our partnership with Twingo helped us run a successful POC with minimal resources on our end. Thanks to Twingo’s experts, we avoided mistakes and created an optimized solution. They gave us continuous advice on how to progress and develop the system while pushing priorities for feature requests.” Tomer Praizler Chief Architect, Armis ## Much of the data in the Armis Platform is updatable:Facts result from the actual aggregationsUsable data is about the devices themselves and it updates in batch mode every 30 minutes“We want to make this data real time by streaming those changes into SingleStore,” said Cohen. “As an example, let’s say a user’s Macbook Pro has just updated and is now vulnerable; they need to close that gap immediately.” ## Outcomes “Queries that would time out completely under ElasticSearch are now processing in less than 10 seconds with SingleStore, and some clock in under 1.5 seconds,” said Cohen. Armis is now achieving strong technical and financial performance: “We simplified our pipeline with SingleStore, and things work much better than they did with ElasticSearch. We ingest this massive data pipeline, analyze streaming data, and allow users to drill down on everything.” Roy Franco Data Infrastructure Team Leader, Armis ### 70% Cost Savings With SingleStore, Armis can flex its costs up and down with the size of its cluster. “We moved from the entire data pipeline including ElasticSearch costing more than $1 million annually to paying a fraction of that for SingleStore Helios, reducing our data pipeline cost by 70%,” said Cohen. #### Faster Performance Improves Customer Device Security The vastly improved performance Armis has realized with SingleStore gives its customers a better view of their device landscapes, allowing them to react faster based on fresher data to keep their environments secure. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/dailyvest/ # dailyVest Powers 401(k) Plans for 7 Million Plan Participants with Fastboards and Real-Time Analytics from SingleStore Because of dailyVest, powered by SingleStore, plan participants are better able to make decisions for their financial future. # dailyVest Empowers 401(k) Plans for Seven Million Plan Participants with Fastboards and Real-Time Analytics from SingleStore “SingleStore is consistently faster for us than Azure SQL. I was really blown away. I waited an hour for 12 months of cached financials with one plan to run in Azure SQL. Then I ran it in SingleStore and it was done in three minutes.” Gerry Morgan Lead Developer, dailyVest Performance improvement over Azure SQL 94.5% Decrease in total cost of ownership (TCO) 35% [dailyVest](https://www.dailyvest.com/) empowers 401(k) plan sponsors, financial services firms, and plan participants with a white-label tool that integrates customized content and big data analytics within the sponsor or participant web portal. It surfaces key performance metrics for employer-sponsored retirement plans and calculates the personal rate of return for individual participants. ## Challenges/Goals dailyVest had originally used Microsoft SQL Server, then expanded its platform’s capabilities by moving to the cloud, but ran into performance and cost issues on Azure SQL as the transaction volume increased. It needed a new database solution that would: - Speed up data ingestion and batch processing performance: Most of the data on dailyVest’s platform was processed at the beginning of the month. The Extract, Transform, Load (ETL) processes and batch data analysis took longer than the team wanted. - Support a growing customer portfolio: The platform’s transactions were growing at a rate of 36 percent per year. The new database would need to scale with an ever-increasing data volume to allow dailyVest to grow its customer base. - Reduce costs: The platform’s operating costs grew at a substantial rate as it scaled up. The long-term recovery backup expenses were particularly high. ## Technology Requirements [Gerry Morgan](https://www.linkedin.com/in/gerrymorgan/), Senior Software Engineer, and the dailyVest team evaluated many cloud databases to find the best match for its fintech platform. The most important requirement was remaining on the Microsoft Azure cloud. dailyVest's customers, such as Charles Schwab, already approved this platform’s security, and moving away from Azure would result in a massive disruption to its business. dailyVest also wanted a database that supported SQL and C#. The company’s developers were already familiar with these languages, and that support would reduce the code that needed to be rewritten following a migration. The database also needed to offer columnstore for better compression and read performance, along with supporting complex queries that generate large amounts of data. ## Why SingleStore To try to resolve the data limitations that were holding it back, dailyVest tried a number of solutions, including: - AWS Redshift - ClickHouse - (HPE) Vertica - Infobright - KDB+ - MariaDB - MonetDB - PostgreSQL Some of the specific challenges the team encountered were: **MariaDB:**dailyVest was already committed to Microsoft’s Azure cloud, and MariaDB did not support it. **Vertica:**nested queries were not available. **AWS Redshift: s**tored procedures were not supported at that time, and it underperformed compared to Vertica. Meeting all of its technology requirements, overcoming the limitations of AzureSQL, and overcoming the shortcomings of other database providers led dailyVest to SingleStore. SingleStore’s unified database is designed for fast analytics and ultra-fast ingest. With support for billions of events per second, millions of real-time queries, and petabytes of data, dailyVest could easily scale to meet the demands of a growing customer base. SingleStore's cloud-first approach means it is engineered to run: - On Azure, AWS, Google Cloud, and other public clouds - In private cloud environments - Different workloads across clouds to implement a multi-cloud strategy - Some workloads in the cloud and some on-prem to implement a hybrid data strategy So dailyVest had flexibility it did not have with other databases such as MariaDB: the freedom to run anywhere. SingleStore is also a Translytical or HTAP data platform combining the best of both row-based and columnar storage — plus vector, and management of all other relevant data types including document, time series, geo, and more — in a single database. This eliminates unnecessary data movement, complexity and cost and delivers real-time performance for both transactional (OLTP) and analytical (OLAP) workloads. By contrast, MariaDB relies on a traditional row-based storage model that does not provide the same level of performance for analytical queries. In short, dailyVest selected SingleStore Helios to spend less time administering the database and more time analyzing 401(k) data. ## Solution This fully managed, on-demand, and elastic cloud database solution was simple to deploy and manage in Azure cloud. dailyVest didn’t even need to leave its current data center. While dailyVest had the in-house talent to manage its own databases, it saved one full-time employee equivalent and was able to better allocate its technical resources. “SingleStore is consistently faster for us than Azure SQL. I was really blown away. I waited an hour for 12 months of cached financials with one plan to run in Azure SQL. Then I ran it in SingleStore and it was done in three minutes." Gerry Morgan, Lead Developer, dailyVest ## Outcomes dailyVest, powered by SingleStore, now empowers plan participants to make better decisions for their financial future. The customized experience dailyVest provides helps employees choose age-appropriate investments, learn more about retirement planning, and understand their personal rate of return. More broadly, the benefits of moving to SingleStore accrue to both dailyVest, its customers, and their end users: ### 35% Reduction in TCO and 1 FTE Savings With SingleStore, dailyVest is achieving a 35% reduction in total cost of ownership (TCO) and is saving the equivalent of 1 F/T employee on database administration, enabling it to redeploy resources to more strategic actions adding value to the company. #### Radically Upgraded its Data Platform with Minimal Disruption to Users Due to SingleStore's migration capabilties, and because with SingleStore, dailyVest was able to maintain its data operations in the same cloud and data center, dailyVest customers faced little to no disruption to their services. Financial services firms are particularly security-minded due to the sensitive data they work with, so remaining in a trusted and approved environment was important. #### Improved Monthly KPI Generation 27% Every month, dailyVest analyzes 16,200 employer-sponsored retirement plans and generates key performance metrics. The platform outputs these metrics onto webpage tiles as a convenient big data visualization. After moving to SingleStore Helios, completing the batch process dropped from 4 hours and 12 minutes to 3 hours and 5 minutes, a 26.6% improvement. #### Plan Sponsors Can Benchmark Performance Against Others The health of an employer-sponsored retirement plan involves many factors, so it can be difficult for plan sponsors to know if they need to make changes for better performance and participation. dailyVest’s platform leverages data to allow plan sponsors, such as Boeing, to compare their plans against similar offerings. *See*[what dailyVest said](https://www.linkedin.com/posts/peter-mcnellis-4bb5b047_all-of-us-at-dailyvest-made-2021-a-productive-activity-6882452273809780736-G3gg)*about the role SingleStore played in its its most recent annual results* ***SingleStore is helping companies compete and win across all verticals.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/dell-prism/ # Dell Transforms its PRISM Inventory System with SingleStore to Run at the Speed of Business “ We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. # Dell Transforms its PRISM Inventory System with SingleStore to Run at the Speed of Business “We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. We chose SingleStore.” Himanshu Gupta Director of Information Technologies, Dell Technologies Went from 30-minute delayed reports to near real-time reporting 30min to NRT Consolidated 6 regional reporting instances into 1 global instance 6 to 1 Of data in columnstore within the SingleStore database cluster 3.6 TB [Dell Technologies](https://www.dell.com/en-us), founded by Michael Dell in 1984, is one of the largest companies in the world and is instrumental in changing the digital landscape the world over, delivering solutions that help customers prepare for anything, anytime. ## Challenges/Goals Enterprise procurement and third-party logistics systems have many moving parts, and data disconnects can lead to inefficiencies and wasted resources. Dell’s existing inventory and enterprise resource planning (ERP) system, Glovia, provided batch data updates, with reports available every 30 minutes, and was not integrated with Dell’s supply chain systems. These factors led to data disconnects and did not support the needs of a fast-paced global enterprise. Glovia reporting queries were taking too much compute power, and its storage needs were exploding. Since the minimum required holding period for audits is seven years, Dell already has to store substantial amounts of historical data in its Teradata enterprise data warehouse, and regional regulations in some parts of the world — e.g., minimum hold time requirements of up to 30 years of data in China — make it even more challenging. Dell needed to streamline its data footprint and optimize its inventory processes by modernizing PRISM and moving from batch data updates to real-time streaming reports. The team wanted to move from its legacy application to a modern technology stack within a year by creating a real-time inventory application with the speed and scale to meet the needs of the business. ## Technology Requirements Glovia’s architecture was based on regional data instances. The new system needed to consolidate these into a unified global platform that could manage multiple data sources, JSON objects, and Kafka data streaming. The team, led by [Himanshu Gupta](https://www.linkedin.com/in/himanshu-gupta-4964357/), Director of Information Technologies, Dell Technologies, also wanted to increase the system’s speed and performance with an in-memory relational database. ## Why SingleStore The PRISM team considered various options to meet the need. “We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. We chose SingleStore,” said Gupta. The PRISM team considered various options to meet the need. “We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. We chose SingleStore,” said Gupta. *Himanshu Gupta, Director of Information Technologies, Dell Technologies* SingleStore is a multi-model relational database built for speed, scale, and agility. It supports all major data types including JSON objects, and ingests data directly from Apache Kafka, which enabled Dell Technologies to deploy an event-driven architecture delivering real-time data, accelerating time to insight for Dell inventory and ERP users. SingleStore offers ultra-fast ingest, super low latency, high-performance queries, and the ability to handle petabyte-scale data volumes. Storage and compute are separated, which allows for independent scaling of both transactional and analytical workloads (OLTP and OLAP) in a single platform. And SingleStore is memory-optimized to drive ultra-low latency for scalable transactions and analytics. ## Solution Dell Technologies runs [SingleStore Self-Managed](https://www.singlestore.com/product-overview/) in its virtual machine (VM) farms, because It has the technical expertise and resources to support this infrastructure and because it avoids moving sensitive data, including inventory data, into the cloud. PRISM runs on a 20-node SingleStore cluster, adeptly deployed across data centers to ensure business continuity, and with SingleStore, replication across data centers now occurs in real time. PRISM has 1.87TB of data in memory and 3.6 TB of data in columnstore within the SingleStore clusters. PRISM sends Change Data Capture and Batch processed data to a data lake that uses Kafka, StreamSets, and Oracle GoldenGate and divides its dataflows based on data types and speeds: - PRISM manages real-time dataflows, and operational reporting that requires 1-2 years of data retention, with SingleStore. It sends data that requires real-time and near real-time processing into the Enterprise Information System, which streams real-time and operational data into SingleStore through native Kafka ingestion. SingleStore powers PRISM’s real-time operational analytics and reporting via VMware Pivotal Cloud Foundry, Oracle, and custom-built microservices. - PRISM sends non-real-time and non-operational data into Greenplum (now branded as VMware Tanzu Greenplum). Greenplum supports PRISM historical reporting via Microsoft Power BI, Salesforce Tableau, and Microsoft SQL Server. ## Outcomes With SingleStore, Dell Technologies now powers its inventory and ERP operations with real-time data built on event-driven architecture. ### Dell’s PRISM Inventory System Now Runs at the Speed of Business “Our Glovia legacy application on Oracle provided batch 30-minute reports. After implementing SingleStore, analytic reports load within a minute, giving our users on-demand reporting in near real time,” said Gupta. “Our Glovia legacy application on Oracle provided batch 30-minute reports. After implementing SingleStore, analytic reports load within a minute, giving our users on-demand reporting in near real time.” Himanshu Gupta Director of Information Technologies, Dell Technologies #### Dell is Saving Massive Data Storage Cost with Columnstore Compression With SingleStore, the PRISM system can store and query JSON data as a column type to efficiently store and analyze multi-attribute objects. SingleStore’s combined rowstore/columnstore architecture and data compression are helping Dell save a massive amount of data storage. #### SingleStore Support Helps Cross-Train Oracle Teams to Evolve the Business As they migrate PRISM to SingleStore, Gupta and the team are putting the skilled resources in place to optimize their deployment. That includes cross-training some of Dell’s Oracle experts on SingleStore, and SingleStore Support is assisting with this process. Gupta and the team have ambitious plans. PRISM is already managing real-time dataflows, and operational reporting that requires it to retain years of data, with SingleStore. They want to extend this functionality by also flowing data from external sources into SingleStore in order to perform data reconciliation on both internal and external data. They also want to use SingleStore’s ultrafast data streaming capabilities to power analytics, data visualization, and AI and machine learning via Power BI, Tableau, Domino, Data Robot, and other consuming applications. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/factors-ai/ # Factors.AI Accelerates Query Response 30X and Reduces Analytics Effort from Days to Minutes with SingleStore B2B marketing has become a highly agile, experimental, and data-driven discipline. # Factors.AI Uses SingleStore Vectors to Accelerate Query Response 30x and Reduce Analytics Effort from Days to Minutes “We have a lot of incoming data, and all of it is now available in real time for analysis. We went from taking 2-5 minutes to run a query on 50 million records to 20 seconds. That's on average a 30X faster query response.” Praveen Das Co-Founder, Factors.AI Faster query response: from 2-5 minutes to 20 seconds 30x Records queried in 20 seconds 50 million Faster time to value for Factors.AI customers 30-40x B2B marketing has become a highly agile, experimental, and data-driven discipline. Marketers have gone from merely running campaigns and generating leads to connecting the impact of marketing to revenue — and, earlier in the process, reconfiguring campaigns on the fly if early results are not meeting expectations. Many existing data infrastructures, however, represent an anti-pattern to this need for speed The typical marketing analytics workflow is slow, expensive, and relies on external third-party providers whose speed profiles often do not match the needs of the business. [Factors.AI](https://www.factors.ai) is changing the game in marketing analytics. It offers an out-of-the-box marketing analytics solution so that B2B companies of any size or resource level can achieve the same improved analytics outcomes as the largest companies in the world. Factors.AI offers an Amazon Alexa-like interface where marketers can ask a question and receive a set of specific, focused recommendations based on their own data rather than having to inspect hundreds of dashboards. *Factors.AI is changing the game in marketing analytics by creating delighted customers* ## Challenges/Goals Factors.AI provides the entire analytics stack for marketers so teams can spend less time wrestling with how to obtain the data they need and focus instead on making sense of diverse customer data to drive better results. Factors.AI initially used PostgreSQL, hosted on Google Cloud, to power its solution. However, it hit a wall trying to scale its application with PostgreSQL, as it’s a single-instance database. Performance also fell short, which impacted its ability to support its customers. Factors.AI’s business goals for its application included: - Enabling marketers to ask questions of their data in real time to help teams make smarter, faster, data-driven decisions - Delivering fast, interactive analytics to CMOs with AI-powered marketing intelligence to accelerate time to value ## Technology Requirements Factors.AI needed to run analytical queries fast and manage a lot of incoming data and updates. To support a real-time, interactive marketing analytics solution, Factors.AI needed to find the right distributed data store that also supported SQL and JSON so it could minimize rewrites of the application. The ideal solution would be run flawlessly in Google Cloud to ensure cloud continuity — Factors.AI wanted to change its data engine, not its cloud provider — while also offering multi-cloud capability to future-proof its solution. It also had to offer a seamless, fast, non-disruptive migration process to ensure operational and business continuity. ## Why SingleStore Factors.AI did not want a complex architecture with two different data stores, one for transactions and one for analytics. To address this and all of its other requirements, the team selected [SingleStore Helios](https://www.singlestore.com/product-overview/) to sit at the heart of its automated marketing analytics solution. “With SingleStore, we get just that: a single data store for both analytical and transactional loads, and that makes the architecture quite simplified,” said [Praveen Das](https://www.linkedin.com/in/praveen-das/), Co-Founder, Factors.AI. ## Solution With SingleStore Helios, Factors.AI gained a modern, distributed relational cloud data platform built for speed, scale, and agility that manages transactional (OLTP), analytical (OLAP), vector and JSON workloads in a single unified engine to power modern data-intensive applications. Factors.AI can now ingest millions of events per second with immediate availability, deliver millisecond query latencies, and handle concurrencies across tens of thousands of users to accommodate its largest customers. With 10-100X the performance at one third the cost of legacy databases, SingleStore Helios gives Factors.AI limitless scalability and fast analytics on dynamic data for complex analytical queries. *Praveen Das, Co-Founder, Factors.AI* “With SingleStore, we get a single data store for both analytical and transactional loads, and that makes the architecture quite simplified.” Praveen Das Co-Founder, Factors.AI Factors.AI achieved the last goal in its cloud data strategy when it easily deployed SingleStore on Google Cloud. ## Outcomes Factors.AI and its customers need data to help them stay a step ahead of fast-moving markets, and SingleStore delivers. ### All Data Available for Real-Time Analysis plus 30X Faster Query Response “The performance improvement of a distributed data store like SingleStore is quite high compared to what we had earlier,” said Das. “We have a lot of incoming data, and all of it is now available in real time for analysis. We went from taking 2-5 minutes to run a query on 50 million records to 20 seconds. That's on average a 30X faster query response.” #### Factors.AI Customers Can Achieve Time to Value 30-40X Sooner Self-serve access by Factors.AI customers to underlying data has replaced the earlier tedious process of working with IT and Engineering teams to get dashboards set up. Analysis that used to take 3-4 days to collate now happens in a matter of hours, making the marketing team more agile and efficient, and continuously optimizing their marketing initiatives. “Thanks to SingleStore, our clients can plan out a campaign, generate an analytics report, create a user segment, send it to their targeting system, and take it live in one hour. That’s about 32X faster than before, and it’s the sort of competitively-differentiating agility we bring to marketing.” Aravind Murthy Co-Founder, Factors.AI. As a result, Factors.AI customers benefit from radically enhanced business agility, greater confidence in marketing execution, and dramatically improved productivity. “Thanks to SingleStore, our clients can plan out a campaign, generate an analytics report, create a user segment, send it to their targeting system, and take it live in one hour. That’s about 32X faster than before, and it’s the sort of competitively-differentiating agility we bring to marketing, said [Aravind Murthy](https://www.linkedin.com/in/aravind-murthy/), Co-Founder, Factors.AI. Aravind Murthy, Co-Founder, Factors.AI #### Easy Migration Process SingleStore’s SQL Wire Compatibility meant that Factors.AI had to rewrite very little of its application to migrate from PostgreSQL to SingleStore. This, along with the onboarding and support experience, made it easy to get started on SingleStore. *Watch this*[video interview](https://www.linkedin.com/video/live/urn:li:ugcPost:6849387404495851520/)*with Factors.AI by Technology Correspondent Lisa Martin, Host of theCUBE and SilconANGLE* *To learn more about Factors.AI’s innovative implementation of SingleStore, watch this*[on demand webinar](https://www.singlestore.com/resources/webinar-turbocharge-your-open-source-db-to-drive-100x-faster-performance-2022-01/)*: Turbocharge Your Open-Source DB to Drive 100x Faster Performance* ***SingleStore is helping companies compete and win across all verticals.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/fortune25bank/ # Fortune 25 Bank Gains Vector-driven, Real-Time Investment Insights across Petabytes of Data with SingleStore and AWS A Fortune 25 financial services institution supports Private Wealth Management, Equities Trading, other mission-critical use cases, and its Cloud Data Strategy with SingleStore. # Fortune 25 Financial Services Giant Gains Vector-driven, Real-time Investment Insights across Petabytes of Data with SingleStore on AWS Concurrent users with no contention 40,000+ query results 10-20ms 5x the data for deeper analysis 5x Data managed in SingleStore 2+PB Financial services platforms are highly data-intensive, processing massive volumes of data in near real time to support an array of use cases including risk analysis and management, complex analytics, trading, regulatory compliance, client reporting, customer care and billing, and more. A Fortune 25 financial services company with offices in all major financial centers worldwide delivers a broad range of services to its large and diversified client base. This global enterprise needed a data platform that could keep pace with the demands of business today and future-proof its data infrastructure for future growth, while reducing support requirements and costs. For those reasons and more, the bank chose SingleStore on AWS as its data foundation for a number of use cases and systems across the enterprise and is continuing to bring remaining systems on line in SingleStore running on AWS. This story: - Drills down on two of those use cases where the evolution and learnings are most meaningful - Discusses two other use cases where SingleStore is deployed - Explores another use case where the company is poised to adopt a smart Cloud Data Strategy with SingleStore ## Challenges/Goals Few customers today are happy to wait for service. Institutional investors, financial brokerages and customers who invest a minimum of $10 million to open an account — as this company’s private wealth management clients are required to do — typically demand the highest quality of service. Any issues or prolonged delays can cause them to migrate their considerable wealth to other financial institutions. Portfolio dashboards at many financial firms do not support this level of QoS. They are often powered by legacy databases that cannot reliably deliver millisecond query responses, especially during volatile market events. ### Private Wealth Management Portal for high-net-worth Individuals This financial services company had a legacy data platform supporting its Private Wealth Management Portal used by high-net-worth individuals. The system was usable when market volatility was limited and the number of clients accessing the website was low. However: - When its user base grew larger than what is perhaps a shockingly low threshold of more than a few dozen users; and - During periods of dramatic market fluctuations, when investors wanted to view their portfolios and quickly execute trades to reduce their risk and exposure; investors experienced long delays in accessing the system. This led to a rising tide of complaints and indeed, outright panic from clients in the wake of market losses. This led to churn; and when churn occurs among a pool of clients who have invested a minimum of $10 million to open an account, losing even one of them has a major impact on the business. ### Equities Trading Platform for institutional investors and brokers The company also had a legacy, batch-oriented data processing framework supporting its Equities Trading Platform used by large institutional investors and brokerage companies. The platform supports functions including not only trading but also regulatory compliance and billing. The platform required data extraction, transforming and loading (ETL) into data stores, and users would access those data stores to obtain the data they needed. This increased latency and rendered real-time monitoring and decision-making impossible under existing data loads, and the database could not handle increased transaction volumes. To prevent attrition of assets under management (AUM) the company needed to deliver great interactive experiences to both individual and institutional/brokerage users under all conditions. In addition to revenue retention, however, it was also crucial to address revenue generation. Trying to deliver good user experiences with its existing data infrastructure was so resource-intensive that it hijacked skilled resources needed to build new services. So the second part of the company’s dual data focus was to more effectively leverage data in order to build new revenue-generating services. ## Technology requirements For its Private Wealth Management Portal, this financial services giant sought a resilient, fault-tolerant translytical platform that could process large volumes of data to support billions of market data events each trading day in near real time, while being resilient and fault-tolerant to reduce skyrocketing support costs. Distributed joins performance was a must, as was a SQL interface to avoid proprietary technology lock-in. For its Equities Trading Platform, the company wanted a data platform that offered streaming data processing. This would enable real-time analytics, monitoring, detection, and event processing, while also enabling internal teams and end customers to benefit from the freshest data and rapid time to insights. Stream processing characteristics include: - Data processed as a stream of events, rather than batches or micro-batches - High-throughput processing for handling high data volumes - Low-latency processing for high data velocity - Hierarchy flattening (stateful processing) for efficient joins and fast analytical queries ## Why SingleStore This Fortune 25 financial services institution chose SingleStore on AWS as its foundational data platform for transactions (OLTP), analytics (OLAP) and vector data, supporting use cases that represent the core of its business, due to a range of factors: ### Private Wealth Management Portal For this use case the team conducted head-to-head performance testing between SingleStore and its other finalist, SAP HANA. It chose [SingleStore](https://www.singlestore.com/product-overview/) based on: *Performance.* The team wanted a solution that could deliver 15- to 200-millisecond response times on queries with a high concurrency of users. SingleStore met this benchmark and was on average 3X faster than SAP HANA. *Low standard deviation.* Performance was key, but so was low standard deviation to ensure consistent performance and customer experience under all conditions. SingleStore’s standard deviation benchmarks were consistently better than SAP HANA. *Manageability and cost.* SAP HANA is an appliance that is costly to manage and maintain, and lacks flexible options such as horizontal scale-out and ready connectivity to client ecosystems. By contrast, SingleStore is a distributed SQL database that offers high-throughput transactions (inserts and upserts), low-latency analytics and useful context from real-time vector data. SingleStore meets you wherever you are in your cloud journey, giving you the flexibility to deploy wherever and however you need it: - As a fully managed cloud service with SingleStore Cloud - Self-managed on-premises with SingleStore Self-Managed - As a hybrid solution leveraging both ### Equities Trading Platform For this use case the enterprise put multiple products to the test and chose these solutions: - SingleStore as the distributed relational DB for near-term or “hot” data and Apache HDFS (Hadoop Distributed File System) for long-term data storage - Apache Kafka as distributed log store and message queue - Apache Flink as stream processing framework - REST API and web socket API for data distribution The team chose SingleStore because it is built from the ground up to support distributed stream processing, providing an efficient, reliable, scalable data processing paradigm that leverages low-cost commodity hardware to provide market-leading big data processing: - High availability, resilience and failover - Horizontal scalability - Checkpointing, recoverability and supportability - Performance and load balancing - Data quality and access controls ## Solutions As outlined in the sections that follow, this financial services giant now operates its Private Wealth Management, Equities Trading Platform and other mission-critical use cases in [SingleStore Helios](https://www.singlestore.com/product-overview/) on AWS, and is looking to both providers as it adopts a smart Cloud Data Strategy to migrate and accelerate other use cases. ### Real-time Private Wealth Management Portal SingleStore provides ultra-low-latency query responses for clients (and industry regulators) who use this customer’s Private Wealth Management Portal. The Portal calculates account performance across 20+ years of data and compares active versus passive investments across funds, asset classes, and investment types. The system ensures completeness and accuracy of data from the inception date of a portfolio. The team chose SingleStore as its distributed relational database for its near-term data supporting this Portal, leaving Apache HDFS as a data lake for long-term or “cold” data storage. SingleStore provides 20-millisecond response time across 1.4 petabytes of data (uncompressed) supporting this use case. By pushing calculations into SingleStore, the team leverages its parallelism and SIMD acceleration to deliver the rapid insights clients need. *SingleStore drives rapid and reliable Private Wealth Management* This system runs on three SingleStore production clusters. Each cluster has two availability groups and four aggregators, organized as one parent and three child nodes, delivering high availability. ### Real-Time Equities Trading Platform Leverages the Vector Functionality in SingleStore's Core Platform This enterprise now operates a Real-Time Equities Trading Platform in SingleStore running on AWS. The customer is currently managing 600 terabytes of data (uncompressed) in SingleStore supporting this use case. SingleStore’s distributed stream processing architecture provides high performance, scalability, resilience, state management, data enrichment, and exception handling in the streaming pipeline. SingleStore along with Apache Kafka and HDFS provide persistence and storage to handle near real-time, intra-day, and historical queries and associated data retention and distribution requirements. While it is only in recent years that most of the world has begun to embrace vector data functionality to support generative AI applications, SingleStore began building vector functionality into its core platform in 2017, and today SingleStore’s [built-in vector database processing,](https://www.singlestore.com/built-in-vector-database/) via a vector frontend to SQL, lets this Fortune 25 enterprise store and search vector data right in the core platform, analyzing vector data plus all other data in a single SQL query. A typical vector search locates the set of vectors that most closely match a query vector. Vectors usually come from objects: text, images, video, audio, etc. Vector database searches find data based on its content or meaning, even without exact matches. For example, vector search can enable semantic search of text where a query about "investments" can return information about "stocks" and “US Treasury bonds" without using those words, because they are similar in meaning or pertain to the same broader category of things. *SingleStore is at the heart of this customer’s high availability Equities Trading Platform* The Equities Trading Platform interacts with multiple upstream systems, each with their own frequently-changing data models. To effectively deal with schema changes, the design enforces a schema handshake with the upstream system before the data exchange. Data stored as Apache Avro in the Kafka topics has its corresponding schema in the schema registry, which supports Avro data schema evolution. ### Enterprise-wide Reference Data Management Reference data is a special subset of master data used for classification, governance, and rapid data access across an entire organization. Reference data describes 1:1 relationships, 1-to-many relationships, or hierarchies. Examples include business units, cost centers, currencies, financial hierarchies, customer segments, and business processes; postal, country, language and transaction codes; and more. This customer moved its reference data from MongoDB to SingleStore on AWS. ### Asset Management: where this Fortune 25 bank invests its own money This financial enterprise invests its own money in a wide range of investment vehicles including hedge funds, private equity offerings, and many more, and its Asset Management infrastructure delivers the data upon which these mission-critical investment decisions are made. This customer current supports its multi-headed solution mainly with Sybase, but has deployed SingleStore to support parts of the use case, and the team’s vision is to adopt an effective Cloud Data Strategy by migrating most or all of its asset management use case to SingleStore Helios. #### *Many moving parts create complexity and cost — and soon it will all hit a wall* This use case is built on the challenge of distributing position data about the company’s core investments to many stakeholders, and joining data with data from the Reference Data Management System and other sources. Two decades of evolution, assimilating multiple formerly separate businesses under one (conceptual) roof, and various attempted data strategies have resulted in this multi-headed infrastructure: - A database it refers to as the golden source of truth for financial asset position data, distributed across 40+ adaptive server enterprise (ASE) replicas. These replicas must connect with other datasets via replication paths or ETL channels. User teams do their own calculations by using complex join logic or retrieving the data into an enrichment framework. - A data warehouse that ingest data from many sources and makes it available to developers, who in turn join, filter and aggregate this data with many other datasets in order to produce the desired reports and application data views. - An API-centric approach that attempts to provide a responsive set of APIs to answer common questions about financial asset positions. These services read position data from the  so-called golden source of truth and are supported by in-memory caching. They perform data enrichment and aggregation, cache the results inside their in-memory stores and expose the data to users through a set of APIs on top of the data stores. This API-centric approach results in a more constrained and well-defined access pattern and is usually reserved for real-time applications. - Most teams consuming this position data have their own siloed data infrastructures where they use data pipelines to access and consume position data and other datasets, join and aggregate them, and maintain local data stores. This solution features a multitude of moving parts, requiring a significant amount of data duplication and a daisy-chained front-to-back infrastructure where data travels throughout various teams across the organization. As indicated, each consuming team has its own siloed data enrichment infrastructure and data store. Operating and maintaining these data infrastructures and all of this data everywhere does provide one benefit: data isolation. However, it also creates massive financial and organizational opportunity cost — including the reality that this sidelines valuable team resources dealing with technical debt instead of freeing them to build new revenue-generating services and applications. Its golden source of truth is also losing its luster, as that database and its 40+ ravenous replicas are reaching capacity limits and will likely be unsustainable in a few years if the company’s current growth trajectory continues. #### *Fortune 25 financial institution’s vision: one database to rule them all (all data needs)* The team’s vision is a single data platform backed by a unified database that: - Stores all of the data its various data consumers will ever need - Provides sufficient resource isolation so different groups can run queries without impacting each other - Supports transactional and analytical workloads (translytical/HTAP) - Manages both recent and historical data without the need for archival mechanisms - Offers flexible elasticity of both compute and storage - Can sustain continuous reads and writes - Delivers sub-100-millisecond performance By resource isolation, the team means that each user group can continue to do its own enrichment work as it does today, and also "write back" the results into that same place, without impacting other user groups. The resulting unified data platform will support all of the core datasets this company requires to run its business, including Positions, Transactions, Accounts, Benchmarks, Product Reference, Product Economics, Market Data, Performance, Investment Catalog, Risk and ESG. ### Real-time Risk Management also Leverages SingleStore's Unified Vector Functionality This use case supports multiple teams across the enterprise that need real-time data to drive risk management involving commodities, credit, currencies, interest rates, and liquidity to meet trading and reporting requirements. A key reason the team uses SingleStore for the algorithmic calculations in this Risk Management System is its ability to enable analysis at the row level rather than on aggregated data, thus vastly improving the accuracy of those calculations. Some benefits the team gained from using SingleStore for vector database processing, as opposed to a specialized vector database system, are: - The broad array of standard modern database capabilities available in SingleStore including SQL, fast distributed and parallel query processing, full-text search, extensibility, ACID transactions, high availability, disaster recovery, point-in-time recovery, broad connectivity support and more - Less data movement is needed between different data subsystems (e.g., caches, text search systems and SQL databases) when all data, including vector data, is stored in SingleStore - Operational costs may be reduced since fewer data management tools and fewer copies of the data are needed - Less specialized skills and reduced labor may be needed to run an application environment For more information on vector databases and generative AI applications, we invite you to explore the resources linked at the bottom of this page. ## Outcomes While there is clearly much more work to do for this Fortune 25 financial services customer, choosing SingleStore for some of its mission-critical data requirements is already yielding significant results: - Using SingleStore as the foundation for distributed stateful streaming processing in its Equities Trading Platform enables the team to effectively handle intra-day and long-term use cases, providing better scalability, resilience and performance at reduced cost. With the ability to process a very large volume of transactions at sub-second latency, this technology can help trading firms make informed decisions in real time, leading to increased efficiency and profitability. - Parallel, high-scale streaming data ingest and high concurrency with SingleStore is delivering 10- to 20-millisecond query results on up to two decades of portfolio history for its high-net-worth customers in its Private Wealth Management Portal. These clients no longer experience page buffering when they access their current portfolios or slice and dice their wealth summarization across various asset classes. They can also compare their portfolios against various benchmarks and make any changes they want on the fly. ## Future Plans This customer is already using SingleStore to support the systems described here, and in addition: - While it is currently using Sybase to manage much of its **Asset Management** infrastructure, the team’s vision is to replace its current high-cost, multi-headed, many-moving-parts approach in this area with a single unified data platform to deliver real-time performance addressing today’s requirements while positioning the organization for future growth. SingleStore is poised to meet the need and plans are under way to migrate Asset Management fully to SingleStore on AWS. - This financial giant is also in the process of launching a new Data Marketplace to support its global organization that will enable anyone across the company to search for any research the firm has already purchased or can purchase. This new system is based on Hybrid Search combining SingleStore’s Full-Text Search and Vector Search via SingleStore Helios Cloud on AWS. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/globalhealthcareleader/ # Global Healthcare Leader Delivers Better Care Faster, Lowers TCO, and Enables $10B Revenue Growth with SingleStore A global healthcare provider is gaining real-time data insights for mission-critical customer- and health provider-facing applications with SingleStore. # Global Healthcare Leader Delivers Better Care Faster, Lowers TCO, and Enables $10B Revenue Growth with SingleStore Identifying health gaps & opportunities 14 times faster 14x Enabling $10B incremental ARR on one end customer alone $10B Replaced SQL Server and replacing PostgreSQL -DB Sprawl Query latency of 200 milliseconds 200ms Of data to be managed in SingleStore 90+TB A global health services company that is one of the world’s largest enterprises is gaining real-time data insights for mission-critical patient care and health provider-facing applications with SingleStore. This company is also reducing TCO and enabling $10 billion in annual recurring revenue (ARR) on a single end customer. By choosing SingleStore, this global healthcare leader is also positioning itself to successfully onboard multiple large new customers, which it could not effectively achieve with its previous data infrastructure. ## Challenges/Goals This company saw substantial revenue opportunities in front of it, but was unable to capitalize on them due to the limitations of its underlying data platforms, a complex architecture consisting of SQL Server, PostgreSQL and several other data engines. One use case in particular is an application that enabled pharmacies to explore formularies, effectiveness, and cost drivers associated with various compound drugs. The existing database, SQL Server, is built on a single-node architecture and was not built for horizontal scale-out. Moreover, its rowstore-only and symmetric multiprocessing (SMP) architecture rendered the enterprise unable to provide pharmacists with accurate and timely analytics and projections. It had to rely on scheduled reports and on pre-aggregation of data to try to optimize query performance. It also could not support high availability or high concurrency. It was already struggling to meet existing data volumes and could not meet the exponential data growth it knew was coming as its business grows, including new capabilities to be driven by machine learning. These data infrastructure challenges were holding the enterprise back and it risked missing targeted annual revenue increases. More broadly than lost revenue opportunities, these issues were putting existing customer relationships at risk. The need transcended technology: even as a massive global organization, it does not have enough people to upgrade and scale its data infrastructure on its own. ## Technology Requirements This healthcare leader’s technology requirements for a new database included: - A horizontal scale-out architecture that can grow seamlessly as data volumes and complexity grow - The ability to ingest and integrate data from multiple sources to ensure the most accurate results - Analytical capabilities for complex queries and reporting - Architectural simplification and reduced complexity by reducing database sprawl - Low latency and sub-second performance to enhance the user experience *Some of the many SingleStore features that led to its selection by this customer* ## Why SingleStoreThis healthcare enterprise chose SingleStore  to take advantage of its unique capabilities, including:Unifying transactions and analytics in a single database with no data movement Columnstore with low-latency analytics capabilities to drive complex aggregations and joinsDistributed, scaleout architecture built for the cloud, but with the flexibility to also deploy on-prem, or in a hybrid environment utilizing bothAbility to evolve away from single-node architecture and scale horizontally, quickly doubling the size of its data cluster without sacrificing performanceFresh data at scale to bring analytics to applications in real timeSingleStore’s three-tier architecture encompassing In-Memory or “hot” data, “warm” data on disk (SSD/NVMe), and bottomless storage of “cool” data through SingleStore’s Unlimited Storage, which offers near-real time access to unlimited database capacity via the least expensive storage available *SingleStore three-tiered architecture* ## In addition to Unlimited Storage, it also sought other marquee SingleStore features such as:**Pipelines,** which offer ultra-fast ingestion with non-blocking, low-latency analytics on data as it lands**Workspaces,** offering a real-time database that supports partitioned separation of compute from compute**Universal Storage:** SingleStore has a single, unified  rowstore-columnstore table type for both fast transactions and analytics *SingleStore Workspaces isolates workloads on shared data* Beyond the technical advantages, this global healthcare enterprise continues to choose SingleStore based on: - Successful implementation of its first project with significant multi-year data growth - The opportunity to leverage implementation best practices and successes going forward - Continuous relationships and support with SingleStore teams including Technical Account Management, System Engineering Support, and core Account team - Executive alignment across both companies to the CDO and CEO levels ## Solution This global healthcare giant has customers, often large health networks, with an array of data and application needs. It initially chose SingleStore as the data foundation for one mission-critical use case: a patient prescriptions portal. ### A Prescriptions Portal, replacing SQL Server The customer migrated this use case from SQL Server to SingleStore and currently manages 65-70 terabytes of data (uncompressed) in SingleStore. In addition to enabling pharmacies to explore pharmaceutical formularies, efficacy, and cost, this application analyzes patient health needs to recommend alternatives, helping them find generic drugs to help save costs. By modernizing and optimizing this application with SingleStore, the customer gained faster processing, query latency of 200ms, high concurrency, and the ability to manage large data volumes. Just as significantly, it also enabled the customer to start actively selling the app to pharmacies again, a process that had slowed to a crawl due to the limitations of the previous database. #### A Patient Care Optimization Portal, replacing PostgreSQL Based on the success it achieved with the Prescriptions Portal, this customer is onboarding another use case to SingleStore: a web portal that uses medical data to identify gaps in patient care. It is migrating this application from PostgreSQL to SingleStore. With PostgreSQL it was only able to store and analyze 18 months’ worth of data; with SingleStore, it anticipates it will be able to manage five years’ worth, at a total data size of up to 20 terabytes of uncompressed data, and still drive low-latency queries The portal connects and analyzes pharmacy, lab, and biometric data to help: - providers identify patients most in need of outreach - clinicians customize treatment plans - members access information around testing, medication safety, preventative care, and any gaps in their current coverage Providers can create dynamic queries with insights around multiple data points including medications, labs, medical conditions, and patient information. With SingleStore the customer gains the ability to let users add multiple conditions and segmentation options. This move was an essential part of the customer’s business expansion as it prepared to onboard two large new health network customers. #### SingleStore is the database of choice for a new Medicare/Medicaid Platform As a result of seeing the value of SingleStore across these two other applications, this global healthcare giant has now selected SingleStore for a third use case, a new platform that will provide real-time analytics supporting the customer’s new program partnership with Medicare and Medicaid processing. While this customer chose SingleStore Self-Managed as the foundation for the Prescriptions Portal and Patient Care Optimization Portal, this application will use the SaaS offering, [SingleStore Helios](https://www.singlestore.com/product-overview/), as the foundation for this Medicare/Medicaid use case, running on AWS. In addition to all the other benefits of moving to a fully-managed cloud solution with SingleStore, a usage-based cloud enables the company to accurately assess the costs associated with supporting its end customers in order to bill them directly for resources consumed in supporting their applications. The decision makers on this project were on the team that deployed SingleStore on the prescriptions portal, replacing SQL Server. ## Outcomes This global enterprise in the healthcare and pharma space is reaping positive technical and business outcomes with SingleStore. Benefits this customer is already realizing with SingleStore include on-demand interactive analytics, instead of the old scheduled batch reporting constraints; and real-time aggregations instead of having to pre-aggregate data to try to obtain timely analytic insights, as it did before. SingleStore’s support for all data sources and speeds is also crucial, as SingleStore is ingesting streaming data from multiple distributed sources such as Kafka and batch data from Hadoop. *Challenges this customer faced before SingleStore; advantages it is gaining with SingleStore* ## Another advantage is that, with SingleStore, the customer is able to leverage its current SQL data assets and preserve access to the internally-developed business intelligence tool its teams are accustomed to using. ### Enabling 5% revenue growth on $200B The company forecast that by migrating its original patient prescriptions portal from SQL Server to SingleStore, it is enabling 5% annual revenue growth on an existing $200 billion customer, or approximately $10 billion in incremental annual revenue. Given that this healthcare enterprise has many large customers, it appears on track to drive massive revenue gains by choosing SingleStore. #### A prescription for better experiences and care The patient prescriptions portal helps patient patient care optimization portal will help identify patient care gaps 14 times faster than before, which means users can find the answers they need quickly and patients get better care. #### The freshest, most accurate data served up sub-second With SingleStore it is reducing the complexity of gathering data and is now able to consolidate data to yield a single version of truth. This provides accurate, consistent, and reliable data, and the speed of SingleStore delivers sub-second query results on its customer-facing dashboards. #### Substantial cost-savings and positive revenue results With SingleStore, the customer is achieving a significant reduction in TCO through more cost-effective licensing, and by eliminating the cost and overhead associated with managing and maintaining multiple existing databases along with unnecessary data movement. #### Foundation for continued healthy growth The power to equip pharmacists with the analytic insights they need in real time positions this global enterprise to penetrate the pharmacy space further, faster, helping it expand its presence and increase market share. The group that selected SingleStore for the New Medicare/Medicaid Platform manages enterprise applications and solutions across the enterprise. Based on continuing success, this group is looking to use SingleStore to modernize data infrastructure as it retires legacy architecture such as Oracle and Teradata. ## ***SingleStore is helping companies compete and win across every vertical. [Learn more →](https://www.singlestore.com/made-on/)*** ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/goguardian/ # GoGuardian Empowers 18+ Million Students and 500,000+ Educators in Digital Learning Environments with SingleStore GoGuardian offers more engaging, effective learning — from anywhere. The company powers K-12 digital learning environments where every student can thrive. # GoGuardian Empowers 18+ Million Students and 500,000+ Educators in Digital Learning Environments with SingleStore Monthly database cost savings $30k Events/minute 2.49M Query response time <30ms Writes per second 750k [GoGuardian](https://www.goguardian.com/) offers more engaging, effective learning — from anywhere. The company powers K-12 digital learning environments where every student can thrive. ## Challenges/Goals The pandemic rapidly accelerated digital learning adoption, as the US education system moved 55 million K-12 students from in-school learning to online classrooms. Essential operations such as classroom management, device inventory, content filtering, and student safety were often spread across multiple applications, increasing complexity and reducing efficiency. GoGuardian sought to use machine learning to offer a unified education technology platform. The platform would moderate student web activities, offer a more engaging experience, help them meet their educational goals, and keep them safe during an incredibly stressful time. GoGuardian’s priorities for the platform were: - Maintaining data security, fidelity, and retention - Achieving scalability and availability to meet the needs of millions of concurrent users - Queryability to give users access to all the data they need to achieve educational goals. ## Technology Requirements The digital learning environment had a number of unique requirements to meet. GoGuardian needed a database that could manage volatile data, capture all real-time browsing events of 55 million students, and provide aggregate query support. Data generation on its platform was cyclical since schools don't keep GoGuardian enabled when classes aren't in session. Events tracked by the software included collections of web clicks or navigation, which required multiple writes across different tables. This data is mutable, which may need an update rather than an insert. The read query pattern was dynamic. Data was grouped, aggregated, and filtered by time, classrooms, student, school, URL, and other information. The query response time needed to be fast to deliver real-time performance and thus provide educators with important guidance and tools. ## Why SingleStore/Solution GoGuardian tested many databases and found that SingleStore was the ideal solution for working with its incoming data and query patterns. This cloud-native unified database built for speed, scale, and agility delivered the functionality and performance needed for this robust software platform. The database is simple by design, with support for SQL and streamlined maintenance requirements. Developer-friendly features provide GoGuardian with a powerful, scalable, and flexible foundation to grow their platform. GoGuardian also found SingleStore’s support to be helpful, friendly, and responsive. The team can reach out directly to SingleStore engineers when it has questions and feature requests. This level of support made the database adoption process easier and creates a pleasant working experience. ## Outcomes GoGuardian is now being used in more than 10,000 schools serving more than 18 million students. Educators can focus on creating a quality online learning environment rather than struggling with software that’s not purpose-built for classroom management. “SingleStore supports both row and columnar storage, defined at table creation time. Perhaps most importantly, it allows unions and joins across row-based and columnar tables. I cannot stress enough how important this feature is to us, as it fundamentally changed how we served data by giving us the best of both worlds: the fast writes of a row-store and the fast aggregate reads of a column store," said Jung (JK) Kim, Senior Infrastructure Engineer, GoGuardian. ### Saving $30,000/month on Database Costs GoGuardian no longer needed to use multiple databases to meet their data storage and aggregate query requirements. The reduced infrastructure complexity significantly improved the maintainability of the database technology, requiring less hands-on time from the engineering team. They were also able to optimize data storage and queries to control expenses while delivering query response time of <30 milliseconds. SingleStore made scalability, high availability, and flexibility more cost-efficient for the platform. #### Helping 500,000 Educators Manage Digital Classrooms GoGuardian helps more than half a million educators manage digital classrooms, and it can now offer students a more engaging experience, help them meet their educational goals, and keep them safe during an incredibly stressful time. #### Achieving Throughput of 2.49M Events/minute GoGuardian was able to reach their real-time event processing goals through SingleStore’s ultra-fast ingest and high-performance queries. The sheer amount of data contained in the events, and the fact that it is volatile for a short period, frequently required upsert operations. ***SingleStore is helping companies compete and win across all verticals.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/impact/ # impact.com Accelerates The Partnership Economy with SingleStore In performance-based (or simply performance) advertising, the advertiser pays only when there are measurable results, normally classified as conversions. # impact.com Accelerates The Partnership Economy with SingleStore “Several of the competitors have good features, but they all had a pitfall or two that held us back, whereas SingleStore really ticked all the boxes.” Mauricio Aristizabal Principal Data Architect, impact.com Reduced query speeds from 10 seconds to sub-second latency 1,000% Concurrent users 1,000+ Events/hour 20M Migrated 100% of data and report requests into SingleStore 100% impact.com is managing 6 petabytes of data with SingleStore 6PB In performance-based (or simply performance) advertising, the advertiser pays only when there are measurable results, normally classified as conversions. This is by contrast with brand marketing and advertising, which focuses on building awareness in the marketplace. As if performance advertising were not already challenging enough by definition, it  has also faced external challenges, such as Apple blocking third-party cookies, leaving marketers struggling with campaign tracking and attribution. Performance advertising companies needed new ways to analyze performance and manage partnership programs that evolved beyond traditional affiliate marketing, and [impact.com](https://impact.com/) stepped into the void. impact.com enables companies to tap into the massive potential of The Partnership Economy. It offers the world’s leading partnership management platform for performance advertising that supports brands, publishers, and agencies in building relationships with publishers and consumers, and provides visibility across the entire consumer journey. It offers streaming analytics for reporting and insights on digital marketing, affiliate success, fraud detection and compliance. Its customers pay not for impressions or clicks but for outcomes (conversions) such as sales, leads, app installs, and signups. impact.com has 1,000 employees across 11 global locations serving more than 1,000 customers including 1-800-FLOWERS, Adidas, Canva, HSBC, HubSpot, Lenovo, Levi Strauss & Co., McAfee, Microsoft, Ticketmaster, Uber, and Walmart. ## Challenges/Goals impact.com must be able to process 20 million events per hour for 1,000 concurrent users who need to run many reports throughout the day and expect real-time data, low latency, and an interactive experience. impact.com was experiencing rapid growth in datasets across multiple databases and ran into problems with ingestion speed at the concurrency it needed. The existing system used Cloudera Impala and Kudu and was unable to achieve sub-second reporting. “As much as we tried to optimize the data structures in our reports, with Cloudera we could never get reporting to be sub-second. It was anywhere from two to 10 seconds, which was not the experience we wanted to deliver to our customers,” said [Mauricio Aristizabal](https://www.linkedin.com/in/maristi/), Principal Data Architect, impact.com. “And I’m not just talking about exploratory, ad hoc business intelligence. I’m also talking about standard reports, dashboards, and widgets. We needed reporting to be a lot faster than we were able to deliver at the time.” *Mauricio**Aristizabal, Principal Data Architect, impact.com* impact.com was also dealing with a poorly defined static cost structure and a lack of account team support and engagement with Cloudera. “Historically for us with Cloudera, it has been difficult because until recently, it required us to use Kerberos [a network authentication protocol]. We had to set up Kerberos tickets and everything else for any client out there. In some cases, that wasn’t possible because some clients simply did not support it,” said Aristizabal. “As much as we tried to optimize the data structures in our reports, with Cloudera we could never get reporting to be sub-second. It was anywhere from two to 10 seconds, which was not the experience we wanted to deliver to our customers.” Mauricio Aristizabal Principal Data Architect, impact.com ## All of these factors led to negative business consequences. impact.com was missing performance service level agreements (SLAs), delivering poor end-customer experience — and paying more in the bargain. It was dealing with increasing costs associated with supporting and scaling the database infrastructure, and unforeseen budgetary increases along with little pricing flexibility. ## Technology Requirements Aristizabal and the team started evaluating other solutions to meet its growing data-intensive platform needs, including:Low latency analytics to meet user expectations and speed up the time-to-insightSupport for a variety of business intelligence (BI) reports, dashboards, and other visualizations, APIs and by-key lookupsDistributed (scale-out) model with push-button online cluster resize to continuously optimize cost while meeting SLAsHigh concurrency capable of supporting 1,000 users and full multi-tenant functionality Ultra-fast performance for processing 20 million events per hour.Primary keys to support idempotency — the abiilty to apply operations multiple times without changing the result beyond the initial application — and fast lookups from the same dataset that is also serving ad hoc queriesSupport for updating data at scaleSeparation of storage and compute, and among tenants (workspaces)Low management overhead: no manual compactions, stats gathering, or rebalancingEasy client connectivity ## Why SingleStore“We looked at four players: BigQuery, Cloudera CDP (Impala/Kudu), SingleStore, and Snowflake. Several of the competitors have good features, but they all had a pitfall or two that held us back. Whereas SingleStore really ticked all the boxes,” explained Aristizabal. impact.com had added SingleStore to its evaluation process due to the company’s original name.“Frankly, it was the name at the time, MemSQL, that compelled us to reach out to the SingleStore team. We were looking for an in-memory data store because we thought that’s what would enable the sub-second response we required,” said Aristizabal.SingleStore is the modern database for data-intensive applications. impact.com was particularly drawn to these capabilities: Sub-second reporting thanks to a blazing fast, infinitely scalable database engine and data structuresSeparation of storage and compute with SingleStore Workspaces to avoid maxing out memory and budget, creating an infinitely scalable systemEasy connectivity with a simple username and password, and with user-friendliness reminiscent of MySQLThe ability to have transactions, analytics, and multiple data types in one modern database, minimizing data movement and delivering ultra-fast speedFast key lookups and multiple indexes ## Solution impact.com deployed [SingleStore Helios](https://www.singlestore.com/product-overview/) on Google Cloud. SingleStore checks all the boxes with sub-second reporting, low-latency analytics, high concurrency, and more. SingleStore provides impact.com with real-time analytics on its multi-tenant digital marketing, affiliate success, and fraud platform. When the migration is complete, SingleStore will be Impact.com’s data warehouse for 100% of its data and reporting. In short: All Data. One Platform™ — and Impact.com will be managing six petabytes of data with SingleStore. “With SingleStore, we can find a specific record among billions via fast by-key lookups. Our team can do analytic queries on any column because it’s columnar, and they can also do sub-second super-fast reporting on a couple of columns that have indexes.” Mauricio Aristizabal Principal Data Architect, impact.com ## For the initial deployment, impact.com moved 20-30% of its data from Cloudera into SingleStore (acting as a data mart), which generated 80% of the reporting requests. It used a resource-heavy deployment model for extra performance and peak season capacity.“With SingleStore, we can find a specific record among billions via fast by-key lookups. Our team can do analytic queries on any column because it’s columnar, and they can also do sub-second super-fast reporting on a couple of columns that have indexes,” explained Aristizabal. ## Outcomesimpact.com’s partnership management platform now handles affiliate and cash back programs, as well as influencer and B2B use cases, with features that include: Fraud detection to verify that real humans are taking actions, not botsCompliance checking to ensure partners are using company brand names appropriatelyTracking and attribution that identifies the click that drove the conversion and other partners that contributed to the customer journeyThe ability to handle all fund transfers and support for more than 60 currencies, allowing users to fund in their currency, from one bank account, to pay partners globally in their local currencies“It's a pleasure working with SingleStore. It has a great sales organization and delivers exceptional service. It's not just the fact that we have well planned and structured quarterly business reviews, but I have peace of mind knowing my SingleStore team is a Slack message or or phone call away if we run into any trouble,” said Aristizabal. ### Low-Latency Analytics Delivers Stellar Customer Experiences With SingleStore Helios running on Google Cloud. impact.com is able to achieve its sub-second latency analytics goal. Many concurrent users can quickly access many types of reports, allowing them to make better business decisions faster with real-time analytics. “In the end, we learned that sub-second latency wasn’t really just about having an in-memory database, but also about having SingleStore’s robust engine and data structures,” said Aristizabal. “It's a pleasure working with SingleStore. It has a great sales organization and delivers exceptional service. I have peace of mind knowing my SingleStore team is a Slack message or phone call away if we run into any trouble.” Mauricio Aristizabal Principal Data Architect, impact.com ### Eliminating Database Sprawl Reduces Management Overhead “We can have one set of data, one table, and one data structure that can satisfy many use cases with SingleStore. It enables us to do all kinds of things with one piece of data without having to duplicate it, use separate pipelines, or worry about data discrepancies,” explained Aristizabal. #### Partner Automation Leader Moving Forward with a Stable, Future-Proof Data Partner “The platform has been very stable. We’re using the managed service, so we don’t really have to do much management on our end. The few times we’ve had some fleeting hiccups, SingleStore has been right on it. Working with SingleStore the last two years gave us the confidence to go all in on the platform. That was a big decision, and it has paid off. We’re looking forward to continuing this successful partnership for many years to come.” “We learned that sub-second latency wasn’t really just about having an in-memory database, but also about having SingleStore’s robust engine and data structures.” Mauricio Aristizabal Principal Data Architect, impact.com ## “In the near future, SingleStore will become our main data warehouse that will handle 100% of data and reporting requests for all of our use cases. We’re looking forward to that migration,” said Aristizabal.impact.com is also looking forward to using [SingleStore WorkSpaces](https://docs.singlestore.com/cloud/getting-started-with-singlestoredb-cloud/about-workspaces/what-is-a-workspace/), which separates compute and storage for management and workload isolation. “Workspaces is very exciting to us because the separation of storage and compute makes it possible to serve even more tenants while ensuring their workloads are isolated and don't affect each other, and allows us to fine tune resources and cost (via workspace size) to match their specific requirements and SLAs,” explained Aristizabal. “In Cloudera, for example, there are different database pools for a little bit of isolation between different workloads, but it’s not fine-grained.” With SingleStore, impact.com will be able to create individual workspaces for tenants so that one workload does not impact the other. If an API gets out of control, it won’t affect other components, such as reporting. “Working with SingleStore for the last two years gave us the confidence to go all in on the platform. That was a big decision, and it has paid off. We’re looking forward to continuing this successful partnership for many years to come.” Mauricio Aristizabal Principal Data Architect, impact.com “With SingleStore WorkSpaces, we will have a main read-write workspace where we do our extract, transfer, load (ETL) and maintain the data," said Aristizabal. "Then we will have individual workspaces that are read-only for all our tenants, so they’re using their own compute and not affecting everyone else." ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/monitorbase/ # MonitorBase Uses Real-Time Vector Data from SingleStore to Make Every Contact Count in the Mortgage Market “ Since switching to SingleStore, there have been no worries or headaches about downtime from the data source, APIs being down, or having to re-collect data. # MonitorBase Uses Real-Time Vector Data from SingleStore on AWS to Make Every Contact Count in the Mortgage Market “Since switching to SingleStore, there have been no worries or headaches about downtime from the data source, APIs being down, or having to re-collect data. SingleStore solved all the pain points that kept me up at night.” Guy Warner Chief Technology Officer, MonitorBase From 60 to 1,000 requests/min 16x faster Predictive algos from up to 48hrs to 15min ≅200x faster Customers can now paginate 100 requests/second 100/:01 Sub-100ms dot_product results using vectors <100ms Reduction in internal messages & support tickets 30% [MonitorBase](http://www.monitorbase.com) is the #1 borrower retention solution that cost-effectively helps mortgage loan originators use the loan officer’s client contact database to find hidden opportunities with existing customers. Since day one, MonitorBase has found success making sense of complicated circumstances. Founded at a time when the mortgage market was in turmoil, the Salt Lake City-based fintech set out to provide a top-tier borrower retention system for mortgage lenders, credit unions, and banks. The forward-thinking founders at MonitorBase knew there would be an increasingly high demand for data management as AI, machine learning, and predictive analytics would inevitably grow to become commonplace in other parallel technologies. It prepared for this shift by building a product that would deliver the most accurate alert results in the banking and payments industry while providing superior compliance protection and cost savings to customers. Navigating change with success sits at the core of MonitorBase’s mission to create experiences that prioritize uptime, security, and trust for professionals in the mortgage industry as well as bankers and credit union professionals. MonitorBase’s  proprietary Predictive Alerts unlock data to help loan originators quickly find prospects with a higher probability of buying. On average, 10% of predictive alerts have a mortgage credit pull within 90 days, and 75% of its inquiries have had a Predictive Alert 90 days prior. MonitorBase’s predictive algorithm helps its 10,000+ users identify potential homebuyers and re-engage with post clients to assess and position them for new loans with Borrower Retention Alerts including Inquiry Alerts, Credit Migration Alerts, Pre-Mover Alerts, and Predictive Scenarios. It also helps its customers respond in real time to market corrections or rate changes from the federal government. *MonitorBase Offers the #1 Borrower Retention System For Mortgage Origination* ## Challenges/Goals Having the right information at the right time has always been MonitorBase’s sustainable advantage, and as the US housing market changes over time, the team knew it was time to upgrade its tech stack. It needed to enhance its performance and provide customers with the information that would make them successful despite market volatility. MonitorBase’s challenges included slow recovery times: full restores took 8-12 hours, and table locks in MySQL created slow performance on joins. It took 24-48 hours to run monthly predictive algorithms, which resulted in slow performance and even downtime for customers. Keeping up with market corrections and rate changes in real time became increasingly challenging. ## Technology Requirements For its new system, the team sought: - Top-level security - Ability to substantially increase speed - Affordable cost for their small business - Increased reliability/uptime - Ability to build within the Laravel framework ## Why SingleStore [Guy Warner](https://www.linkedin.com/in/guywarner/), Chief Technology Officer, MonitorBase, wanted to implement a new solution within the Laravel framework. He came across a series of blog posts by the co-founder of another SingleStore customer, describing that team’s experience with SingleStore. In them, Warner found answers to his pain points, including speed, security, cost and uptime. *Guy Warner, Chief Technology Officer, MonitorBase* ## “Jack’s pain points were exactly ours,” said Warner. “I was looking at Snowflake and many others in this crowded field. Just knowing the work Jack did in Laravel, we decided to make the jump to SingleStore after speaking with him. He’s a very straightforward guy. There’s a whole community through Laravel that has built all the apps and all the database connections and there’s article after article now. It's pretty easy for anyone in Laravel to just plug and play.” “We tested others including Algolia, Elasticsearch, MySQL and Meilisearch, but then as soon as we realized the match we had found in SingleStore, there was no need to even look at any other solutions anymore.” Guy Warner Chief Technology Officer, MonitorBase Warner’s team tried other solutions before selecting SingleStore, including Algolia, Elasticsearch, MySQL, and Meilisearch. “We tested them, but then as soon as we realized the match we had found in SingleStore, there was no need to even look at any other solutions anymore beyond the trials,” said Warner. ## Solution: SingleStore real-time data streaming MonitorBase is now running in [SingleStore Helios](https://www.singlestore.com/product-overview/) on AWS, integrating with Tableau to create a powerful dashboard for real-time data streaming. MonitorBase is innovating with SingleStore platform features including: - [Code Engine with Wasm](https://docs.singlestore.com/cloud/reference/code-engine-powered-by-wasm/) - [Data API](https://docs.singlestore.com/cloud/reference/data-api/) - [dbt Connector](https://docs.singlestore.com/cloud/load-data/load-data-from-a-data-source/transform-data-with-dbt/) - [Pipelines](https://www.singlestore.com/blog/pipelines/) - [Unlimited Storage (Bottomless)](https://www.singlestore.com/blog/the-future-is-bottomless/) - [Vector Database](https://www.singlestore.com/built-in-vector-database/) “SingleStore Pipelines are phenomenal,” said Warner. “We uploaded 100 million records, hit ‘go,’ and it was already there. That was the migration process.” ## Solution: SingleStore vector-driven sales and support MonitorBase uses SingleStore as its core data platform managing transactions (OLTP) and analytics (OLAP), and learning that SingleStore also incorporates vector data management into the core platform enabled the team to quickly meet another requirement. Warner and the team wanted to incorporate vector functionality into the system and were looking at a range of vector databases. “When we learned SingleStore already had vector capabilities, that simplified the process," said Warner. MonitorBase is now using SingleStore: - **To apply vectors against its predictive algorithm and find its best prospects faster.** Using vector coefficients unlocks data insights such as determining which profiles closed on a mortgage within six months of engagement, and which columns or variables to look for. That means instead of having to parse through 1,500 variables, the team can focus on, for example, just four variables, and quickly engage with all similar profiles in the database. - **To analyze support data from multiple sources and power its internal AI support chatbot.** MonitorBase is training and fine-tuning its chatbot and ingesting Confluence Wiki and HubSpot support data in vector, using a mix of ChatGPT and vector coefficients to find the closest answer for the user. Support has gained sub-100ms results to resolve issues in real time and MonitorBase has seen a 30% reduction internal messaging and support tickets. “SingleStore Pipelines are phenomenal. We uploaded 100 million records, hit ‘go,’ and it was already there. That was the migration process.” Guy Warner Chief Technology Officer, MonitorBase ## Outcomes The collaboration between SingleStore and MonitorBase on this comprehensive solution continues to deliver advantages to MonitorBase and its customers. “One of the things I really like about SingleStore is the monthly touchpoints,” said [Rick Segeberg](https://www.linkedin.com/in/ricksegeberg/), Vice President of Infrastructure & Security Systems, MonitorBase. “We've never had any other client or a partner do that. It’s been nice because we have candid conversations — and one of these conversations led to us speeding up our database 10x.” *Rick Segeberg, Vice President of Infrastructure & Security Systems, MonitorBase* ### Massive Performance Gains In the past, table locks prevented MonitorBase from executing on more than 60 requests per minute. As soon as the team implemented SingleStore Helios and leveraged [Columnstore](https://docs.singlestore.com/cloud/create-a-database/columnstore/), it was able to receive 1,000 requests per minute — which ended up creating a new “problem” the team never even dreamed was possible “Things started popping off after the move that I wouldn’t have expected,” said Warner. “Laravel has a queue system where we offload data, and then the API hits so users don't have to wait for the response from our systems. The ‘problem’ was that it was too fast! Our workers were grabbing the job from the database at the exact same millisecond and doubling the job. So then we had duplications, which we ended up fixing quickly. But that was not an issue I thought I was ever going to have.” “One of the things I really like about SingleStore is the monthly touchpoints. We've never had any other client or a partner do that. One of these conversations led to us speeding up our database 10x.” Rick Segeberg Vice President of Infrastructure & Security Systems, MonitorBase MonitorBase has also gained up to 200x faster performance when running its predictive algorithms. “That was really big for us,” said Warner. “We used to only be able to run predictive algorithms once a month, and it took us 24-48 hours. Now we can run it in 15 minutes,” which also makes it a lighter lift for the team to run the algos more often as desired. ### Rapid Request Response Yields Optimized Customer Experiences MonitorBase is helping its customers navigate the fast-paced mortgage industry faster and better since it partnered with SingleStore on its solution. “It was really rough for some of our customers to be able to load data into the old system,” said Warner. “We’re a special kind of app, and we don’t want our customers to use the app, we want them to use our data in their own CRM; but in order to do that, we need to be able to handle thousands of requests. Now we can let them paginate 100 requests per second and get their data out of our system without being a bottleneck.” “It seems like with every SingleStore release there are fascinating new AI tools offering new capabilities we can use to help grow our business.” Guy Warner Chief Technology Officer, MonitorBase The ability of MonitorBase customers to load their dashboards and make searches in real time empowers them to make the best decisions for their business at the speed of the market. Faster and easier, simplifies infrastructure, reduces complexity, delivers optimal user experience     . We no longer have to go to 3-4 different data sources/Wikis to get the information you need; you simply click to get more info ### Refocusing Resources Away from Technical Debt and Toward Strategic Value SingleStore was the affordable solution MonitorBase was looking for, and beyond capex considerations, post-implementation the team is also reaping opex benefits, since it no longer has to expend precious team hours on maintenance, infrastructure, and server updates. With a fully managed system, the team is able to dedicate far more time to adding strategic value to the business, ensuring that MonitorBase remains a leader in the mortgage industry. MonitorBase is building on its success with SingleStore, launching other test apps for direct user interface. These include analyzing calls and setting best practices for a call chat application and providing rapid access to consumer need and credit profiles. Warner concluded: “It seems like with every SingleStore release there are fascinating new AI tools offering new capabilities we can use to help grow our business.” ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/nucleus/ # Nucleus Security Replaces MariaDB with SingleStore and Improves Query Speeds Up to 20X, Fueling Market Expansion Nucleus Security was launched in 2018 by its founders who have decades of experience in vulnerability management (VM) supporting US government organizations. # Nucleus Security Replaces MariaDB with SingleStore on AWS and Improves Query Speeds Up to 20x, Fueling Market Expansion “Not only can we meet customer demands, but with SingleStore we’ve actually lowered our AWS infrastructure costs by about 3X.” Steve Carter Co-Founder and CEO, Nucleus Security Ingesting 60x more assets than with MariaDB 60x Ingesting 100,000 assets in less than one hour 100k Reduction in infrastructure costs 3x [Nucleus Security](https://nucleussec.com/) was launched in 2018 by its founders who have decades of experience in vulnerability management (VM) supporting US government organizations. While working as VM practitioners, they identified inefficiencies in the processes that must take place once vulnerabilities are identified to quickly prioritize and remediate them. They set out to optimize the VM processes and workflows by building a platform for the federal government, automating processes that had traditionally been done manually. Adhering to the federal government technology requirements, they chose to build the platform on MariaDB, as it was on the government’s approved software list. ## Challenges/GoalsNucleus was able to ingest and process results from vulnerability scanning tools without issues when scanning was occurring monthly or quarterly. When it uncovered opportunities to expand Nucleus to the private sector, however, many of its initial customers were scanning weekly or daily, and the MariaDB system it was using became a bottleneck preventing the company from scaling to meet the needs of enterprises. ## Technology RequirementsWhen the Nucleus team began architecting its platform, which was built to be deployed anywhere, but primarily in AWS, it explored graph, document, and traditional relational databases. However, said Co-Founder and CEO [Steve Carter](https://www.linkedin.com/in/stephen-carter-nucleus/), “It quickly became apparent as we started to onboard bigger customers that a high-performance relational database system was the correct solution to support our data model and the features we wanted to bring to the large enterprise market.” ## Added Co-Founder and COO [Scott Kuffer](https://www.linkedin.com/in/scott-kuffer/), “We were working on customer use cases that made it evident that we needed a relational database because all the data Nucleus is ingesting is highly relational. The majority of the data we store are time stamped vulnerability scan results, which include individual vulnerabilities, and each is tied to assets in a many-to-many relationship.” “We determined that a sharded cluster was needed to scale the system horizontally. While Percona offered a clustered architecture, it did not offer the performance improvements that a sharded system provides.” Steve Carter Co-Founder and CEO, Nucleus Security *Scott Kuffer, Co-Founder and COO, Nucleus Security* ## The team explored solutions for scaling MariaDB, like Percona, but found that it wouldn’t meet their need to scale horizontally. “We determined that a sharded cluster was needed to scale the system horizontally. While Percona offered a clustered architecture, it did not offer the performance improvements that a sharded system provides,” said Carter. ## Why SingleStoreSingleStore supports the MariaDB MySQL syntax, which enabled Nucleus to replace its original database with few code or query changes. “We started with the free tier of SingleStore. We took a clone of our existing MariaDB database and did a proof of concept (POC) to determine how to migrate the changes we had to make to our application and the database schema. It went really smoothly,” said Carter. “We started with the free tier of SingleStore. We took a clone of our existing MariaDB database and did a proof of concept (POC) to determine how to migrate the changes we had to make to our application and the database schema. It went really smoothly.” Steve Carter Co-Founder and CEO, Nucleus Security ## SingleStore was far less complex than MariaDB and easier to maintain. The team got the SingleStore database deployed, its data loaded, and had the Nucleus application working in about half a day. ## SolutionSingleStore has enabled Nucleus to fill the VM gap and provide a solution its market desperately needs.Nearly every action performed through the Nucleus web application is powered by SingleStore, which also powers the Nucleus job queue. This allows customers to set up integrations with vulnerability scanning and ticketing tools and configure automated data ingestion to occur at desired frequencies (e.g., hourly, daily, weekly) to trigger reports, alerts, and tickets in systems like Jira and ServiceNow. ## OutcomesWithin one fiscal quarter of switching to SingleStore, Nucleus converted its first beta account to a paying customer and expanded into large enterprise accounts. ### Successful Market Expansion “We closed a partnership deal with the Australian Post Office, our first cornerstone large enterprise client, which launched a lot of our subsequent success. They’re scanning thousands of applications at multiple layers continuously throughout the entire development lifecycle, and we wouldn't have been able to support them without SingleStore,” said Kuffer. “We closed a partnership deal with the Australian Post Office. They’re scanning thousands of applications at multiple layers continuously throughout the entire development lifecycle, and we wouldn't have been able to support them without SingleStore.” Scott Kuffer Co-Founder and COO, Nucleus Security #### Ability to Ingest 60x More Assets Compared to its Legacy Database “We do a lot of our licensing based on numbers of assets [an asset is a computer, device, or application to be scanned]. Each asset can have hundreds or thousands of vulnerabilities. With SingleStore we're able to ingest vulnerability scans containing more than 100,000 assets in less than one hour with no problems," said Kuffer. Before, with MariaDB, we were only able to ingest vulnerability scans with up to 5,000 assets, and it would take up to three hours depending on the data.” “With SingleStore we're able to ingest vulnerability scans containing more than 100,000 assets in less than one hour with no problems. With MariaDB, we were only able to ingest vulnerability scans with up to 5,000 assets, and it would take up to three hours depending on the data.” Scott Kuffer Co-Founder and COO, Nucleus Security #### 20x Faster Performance for its Slowest Scans During the SingleStore POC, the initial performance tests far exceeded expectations. “We started by importing our largest tables from MariaDB and running our slowest queries. With SingleStore we saw speed improvement of 20x for some of our slowest queries,” said Carter. SingleStore's performance enabled the team to use its free tier longer than expected. “We have the confidence that we can meet the real-time demands and service levels agreements (SLAs) from large enterprise customers. We upgraded our subscription to SingleStore to ensure we have 24x7 access to its support team. Not only can we meet customer demands, but with SingleStore we’ve actually lowered our AWS infrastructure costs by about 3X,” concluded Carter. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/pitcherogps/ # PitcheroGPS Revolutionizes Sports Performance Tracking with SingleStore “ I don’t think this business unit is viable for us without SingleStore. We couldn’t hit the performance requirements with MySQL. ” # PitcheroGPS Revolutionizes Sports Performance Tracking with SingleStore on AWS “I don’t think this business unit is viable for us without SingleStore. We couldn’t hit the performance requirements with MySQL.” Jon Milsom Co-Founder and CTO, Pitchero Rows per second ingested Up to 140,000 Queried in milliseconds 1B rows Rows of session data 900M Based in Leeds, U.K., [Pitchero](https://www.pitchero.com/) has been a pioneer in providing technology solutions to sports clubs and teams for more than a decade. With its latest venture, [PitcheroGPS](https://www.pitcherogps.com/), this fast-growing company introduced a groundbreaking GPS tracker designed to monitor athletes' performance during outdoor team sports such as soccer, rugby and field hockey. The player tracker is already approved by [FIFA](https://www.fifa.com/fifaplus/en) and [World Rugby](https://www.world.rugby/) for use globally. *Jon Milsom, Co-Founder & CTO, Pitchero* “Our core business has been around for about 15 years providing technology that helps sports clubs and teams spend more time playing and less time on administrative work,” said [Jon Milsom](https://www.linkedin.com/in/jonmilsom/), Co-Founder & CTO, Pitchero. In July 2023 the company launched PitcheroGPS, its first hardware product: a GPS tracker worn by soccer, rugby and field hockey players (or any outdoor team sport) to monitor their performance during the game and allow them to track their progress or compare against teammates. With a vision to democratize access to advanced sports data analytics, PitcheroGPS aims to empower athletes at all levels. “We are on a mission to bring elite sports technology to the masses!” Jon Milsom Co-Founder and CTO, Pitchero ## Challenges + goalsPitchero faced the challenge of efficiently handling vast amounts of time series and geolocation data generated by hardware trackers. This generates hundreds of millions of rows with numerical and geographical data that need to be aggregated and parsed quickly. Traditional relational databases like MySQL were not up to the task, leading the team to seek a more robust solution capable of processing hundreds of millions of rows swiftly. “After 15 years of experience with the product, the team knew MySQL would not cope well with this type of workload,” said Milsom. ## Technology requirements "Fast query times across large datasets were imperative for us, considering the sheer volume of data generated per session," said Milsom. “Our hardware tracker samples at 10Hz (10 times per second), so a game or training session lasting 90-180 minutes can provide 50,000-100,000 rows of data, per individual, per session.” Other advantages he and the team were looking for included: - Fast query times across large datasets (~ hundreds of millions of rows) - Fast computation across the time domain (TIME_BUCKET()) - Ability to perform simple mathematical instructions quickly (e.g.. AVG(), MAX()) - Ability to run in the cloud ## Why SingleStorePitchero knew it needed to bench MySQL and put a high-performing data platform in the game. Milsom had read how another SingleStore customer, a website analytics company, moved off MySQL. “We were able to make a proof of concept using the SingleStore Docker images and were able to assess the raw speed with a large number of rows of data,” said Milsom. “We see SingleStore as MySQL on steroids: the comfort of a familiar query language plus the power of an incredible database engine.” Jon Milsom Co-Founder and CTO, Pitchero ## Pitchero also considered MongoDB Atlas and an AWS version of MongoDB, Amazon DocumentDB. “We also considered MongoDB (we use MongoDB Atlas for an analytics workload), but with most of our development team reading/writing standard SQL fluently, SingleStore provided all of the speed with a comfortable query language (SQL),” added Milsom. “We only needed to learn SingleStore-specific commands such as PIPELINE, rather than the MongoDB query syntax. We gained a relatable syntax for our existing development team with no huge cognitive leap.”SingleStore emerged as the preferred solution due to its remarkable speed, scalability and compatibility with standard SQL. The platform's ability to handle complex queries across massive datasets in milliseconds, coupled with its ease of use for the development team, made it the perfect fit for Pitchero's requirements. ## SolutionPitchero deployed [SingleStore Helios](https://www.singlestore.com/product-overview/), leveraging  advanced platform features including:[Time Series Aggregation functions](https://docs.singlestore.com/cloud/reference/sql-reference/time-series-functions/time-bucket/)[Pipelines](https://www.singlestore.com/blog/pipelines/)[Unlimited (Bottomless) Storage](https://www.singlestore.com/blog/the-future-is-bottomless/)The team seamlessly integrated SingleStore with its existing technology stack, including Laravel Vapor for AWS Lambda and Golang for data processing. “We run one production cluster and one staging cluster with segmented workspaces and workloads,” said Milsom. “We can switch off the staging cluster to save money when we aren’t using it.”Data from the hardware trackers is uploaded to Amazon S3 via the PitcheroGPS mobile app, and SingleStore Pipelines ingest the data into SingleStore for analysis. As this story goes live, Pitchero is managing over 900 million cumulative rows of session data in SingleStore, and continues to analyze new and existing data to deliver insights to users. ## Outcomes Since implementing SingleStore, Pitchero has experienced significant improvements in data freshness, query latency and overall performance. PitcheroGPS is now ingesting up to 140,000 rows per second and executes complex queries on nearly a billion rows in milliseconds, powering real-time analytics. “Our customers get super-fast processing of their data so they can see their sessions almost immediately after upload,” said Milsom. This enhanced capability empowers athletes with immediate insights into their performance, while also positioning Pitchero for substantial growth and expansion into new markets. “We will scale out our sales function in 2024 and consolidate legacy workloads and applications into the application that uses SingleStore,” concluded Milsom. “This means many more customers, many more individual tracked sessions, and much much more data.” ## *We hope you enjoyed this story about how Pitchero is deploying SingleStore’s high-performance data solution to help athletes achieve top performance.****SingleStore helps companies compete and win across every vertical. [Learn more →](https://www.singlestore.com/made-on/)*** ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/proof-trading/ # Proof Trading Reduces TCO 70% and Creates High-Performance, High-Transparency Trading Platform with SingleStore on AWS Proof Trading, a cloud institutional equities execution platform, ingests 500,000 records per second and is saving 70% on TCO with SingleStore. # Proof Trading Reduces TCO 70% and Creates High-Performance, High-Transparency Trading Platform with SingleStore on AWS Reading 1 billion bits/second 1B/sec Has executed 35 million trades in 80 seconds 35M in 80sec 70% total cost of ownership savings -70% TCO Ingesting 500,000 records/second 500K/sec Records ingested in 24 minutes 719M [Proof Trading](https://prooftrading.com/) is an innovative institutional equities execution platform, featuring algorithmic trading and cryptocurrency exchange, that is driving change in capital markets. The company boldly declares on its homepage that the world of finance is a bloated industry, and that the team behind this execution-only broker-dealer is working to close the gap between market principles and the actual trading experiences of long-term investors. Proof Trading is backing those words by building algorithms to navigate the market on behalf of its institutional investor clients and to provide unprecedented transparency with products that offer both high performance and high accountability. ## Challenges/Goals With decades of finance industry experience, Proof Trading’s team set its sights on addressing some of the biggest issues it encountered in the US equities market. “Finance is a bloated industry. Its signature piece, the US equities market, is full of contradictions. It is home to new microwave communications towers and low-latency software — implemented through old manual processes that have persisted despite decades of technological revolution,” explained Proof Trading. “It is a place that on the one hand is designed to facilitate public price discovery through fair competition, but on the other, the pricing of its own services is opaque and carries inherent conflicts,” such as a lack of transparency around processes that may be most convenient for the business as opposed to most beneficial for the client. Proof Trading’s vision was to build from the ground up a flexible, state-of-the-art trading platform in the cloud, and it chose to build its own solution to avoid the constraints associated with licensing or partnering with an existing or off-the-shelf platform. The company wants to be a broker-dealer that is different from most others, with no conflicts of interest to deter from its focus on achieving optimal results for its customers. Its company code is to be transparent with its customers and the market, and as part of that it publishes everything, from how its algorithms work to the tools it uses; eventually it plans to open-source everything. *Proof Trading: How the algos work.* ## Technology Requirements Proof stores every single trade it makes in the market, every field, for every market data product its clients are in. It then runs regressions on top of it to keep the open data model. Proof needed its data platform of choice to support this data-intensive approach, and with data growing by 50-100GB of uncompressed data and a billion records per day the selected database would have to deliver a robust set of features, including: - Real-time data ingestion capable of handling 250,000 to one million events per second for multiple hours a day - Fast in-memory aggregations with window functions, upserts, and other cross-sectional aggregations - In-memory tables for fast analytics on working sets of data, and optimized on-disk tables to enhance performance - A mature product that offers tools to set up, manage, and monitor deployments, including multi-node clusters - Cost-effectiveness for a cost-conscious startup looking for something free or relatively inexpensive - Good documentation and community support ## Why SingleStore The Proof Trading team had extensive experience with **kdb+,** a column-based, in-memory, relational time series database commonly used in high-frequency trading. The high cost, steep learning curve, and lack of operational tools, however, led the Proof Trading team to evaluate a number of other databases before ultimately choosing SingleStore: ### MySQL and PostgreSQL, the Traditional RDBMS Starting Points Proof Trading used MySQL only as a starting point, mostly to confirm whether a traditional relational database management system (RDBMS) was the right solution. MySQL did not support the type of advanced analytics or performance Proof Trading was looking for. When the team tested MySQL (the InnoDB engine), it could not keep up with batched inserts of 250,000 per second, and the insert speed slowed noticeably after a few million records were added to the table. PostgreSQL performed better than MySQL on the load tests, but performance was not good enough compared to the other contenders. #### TimescaleDB: A Promising PostgreSQL Extension but Poor Performance TimescaleDB, a PostgreSQL extension, was designed to have better insert rates and predictable query times with large data sizes compared to PostgreSQL, and it included a number of time series features. While it seemed promising at first, TimescaleDB kept running out of memory when Proof Trading tried to ingest 35 million trade records. #### ClickHouse: Impressive Performance but Limited Query Language ClickHouse checked most of the boxes Proof Trading was looking for and delivered impressive numbers in the team’s performance testing, but a few dealbreakers that took it out of the running: - The team would have to issue queries using a SQL-like query language with significant restrictions - User-defined functions and Stored Procedures were not supported - Only one SELECT statement could be issued per request. #### DolphinDB: Right Features, Wrong Cost DolphinDB caught Proof Trading’s attention since it was positioned as an alternative to kdb+. The team’s testing experience was positive, but it ran into these drawbacks: - Cost: DolphinDB was cheaper than kdb+ but still too expensive for the startup’s budget. - Non-standard language: the learning curve was less steep than kdb+ but still significant. - Performance: the team encountered several crashes and out-of-memory errors. #### EMR Cluster with Apache Spark: Experimenting with Flat Files Over Databases At that point, Proof Trading considered working directly with flat files, testing an Elastic Map Reduce (EMR) cluster with Apache Spark on Amazon Web Services (AWS), however, it was too fragile and unstructured to use as a primary database. #### SingleStore: Database Found Proof Trading found SingleStore the best platform to meet the team’s requirements. With a unified data engine for transactional, analytical and vector workloads, SingleStore powers fast, real-time analytics and applications. Proof started with a free commercial license for a starter cluster, feeling that would be enough to get Proof Trading to the point where it could consider paid products, and it soon did just that. “SingleStore was the most balanced solution we found in our investigations. It is mature, easy to use, free (for now), fast, efficient, and interoperable with all the standard tools that we can hope for,” said the Proof Trading team. Other SingleStore features that appealed to Proof Trading included: - Unified data store offering fast analytics with rich transactional support - SQL compliance that comes with MySQL wire-compatibility, which opens up access to integration with MySQL’s vast ecosystem of tools - Extensive Procedural Language support with both user-defined functions (UDFs) and Stored Procedures - In-memory rowstore tables and on-disk columnstore tables with sharding, sorting, and compression - Parallelized, ultra-fast ingestion using multiple cores for load processes - Ease of use “SingleStore was the most balanced solution we found in our investigations. It is mature, easy to use, fast, efficient, and interoperable with all the standard tools we could hope for.” Proof Trading ## Solution SingleStore was among the easiest tools to work with in terms of deployment, administration, monitoring, cluster setup, and even loading and querying of data, Proof Trading said. The company started with [SingleStore Self-Managed](https://www.singlestore.com/product-overview/) and later moved to [SingleStore Helios Cloud](https://www.singlestore.com/product-overview/), a fully managed solution running on AWS, capturing all the advantages of running on the cloud such as remote access, scalability and flexibility, data security and protection, integration with other services and more. Although the team can certainly manage a database, it prefers to focus its efforts not on maintaining data infrastructure but on delivering strategic business value to the company, and SingleStore Helios Cloud running on AWS frees it do that. The team uses SingleStore as its core data platform for transactions (OLTP) and data management. It ingests data directly into SingleStore and runs analytics using Python and queries via APIs. It uses RedisDB for user experience (UX) and OneTick for historical research. *Marcio Moreno, Chief Technology Officer, Proof Trading* Among the SingleStore Helios features Proof Trading leverages are: - [Workspaces](https://docs.singlestore.com/cloud/getting-started-with-singlestoredb-cloud/about-workspaces/what-is-a-workspace/) : a Workspace is an independent deployment of compute resources that can be used to run a workload, and each Workspace can attach and detach databases as needed for flexibility and scalability. When the team creates its ingest pipeline, it creates a number of Workspaces with whatever queries it wants. If some queries are getting slow, the team can simply upsize the Workspace, attach the database, and query from there. - [Unlimited (Bottomless) Storage](https://www.singlestore.com/blog/the-future-is-bottomless/) : Unlimited Storage is the separation of storage and compute for SingleStore. The system persists data files such as snapshots, logs, and blobs to S3 (or comparable blob storage, or even NFS) asynchronously. Blobs not being queried can be deleted from SingleStore node’s local disk, allowing the cluster to hold more data than available disk, thus making the cluster’s storage bottomless. The rest of the platform’s technology stack includes: - Cloud Platform: AWS - Operating System: Amazon Linux 2 - Programming languages: Java SE, Python, Typescript - DevOps: Jira, Bitbucket, Confluence/Notion - Clustering: None for the trading system, AWS Elastic Container Service (ECS) for UX - Operational Tools: AWS CloudFormation, Ansible, Jenkins, DataDog - UX Technologies: Node.js, React/Redux, AG Grid While the Proof Trading System runs inside a private network in the AWS Cloud, much of the equities ecosystem it needs to interface with is still deployed in proprietary data centers in New Jersey. The team selected AWS Region US-East-1 in Northern Virginia and 3.5 milliseconds of network latency away from its major trading centers. ## Outcomes As a result of choosing SingleStore as part of its technology stack, Proof Trading has gained these advantages: ### Reducing TCO by 70% with Suspend and Resume Functionality Proof Trading also uses SingleStore Helios’s suspend and resume functionality to suspend clusters while not in use, which reduces the total cost of ownership (TCO) significantly. Proof’s servers are only needed during business hours — they only run for 10 hours a day and only on weekdays, so it only pays for 50 hours in a week, or less than 30% of what the cost would be if it ran the servers 24x7. The ability to stop and start its database with SingleStore saves it a lot of money. *Proof Trading: a small slice of what is available on its* ## The entire trading system, which includes the databases and EC2 servers, costs Proof Trading less than $10,000 per month. ### Ingesting 500,000 Records and Reading 1B Bits Per Second “SingleStore offers fast analytics while having rich transactional support and is SQL-compliant to the extreme, which enables us to load our trades and quotes at more than 500,000 records per second,” said the team. Proof Trading has loaded 35 million trades in 80 seconds and 719 million quotes in 24 minutes at this ingestion rate with SingleStore. The team also found it can read data from SingleStore at over one billion bits per second (Gbps) with an external tool and the Java Database Connectivity (JDBC) interface. #### Managing Massive Data Volumes and Reducing Cost with Compression SingleStore’s compression capabilities mean that the loaded data only takes up as much space as Proof Trading’s g-zipped source files. With daily data growth rates averaging 50-100GB, having efficient compression lowers the storage burden and cost. ## *We hope you find this SingleStore impact story a worthwhile read, and before you leave this story we want to highly recommend a collection of others: the [Proof Trading home page](https://prooftrading.com/) with links to highly informative documents titled **rejecting the black box, how to build a broker,** and many more.* ## ***SingleStore is helping companies compete and win across every vertical. [Learn more →](https://www.singlestore.com/made-on/)*** ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/publica-la/ # publica.la Speeds Search 70X, Processes Millions of Rows per Second, Lowers TCO, and Grows its Business with SingleStore publica.la is the Shopify for digital content. It enables authors and content creators to have their own custom storefront to share and sell eBooks, audiobooks, and other digital content direct to consumer (D2C). # publica.la Speeds Search 70x, Processes Millions of Rows per Second, Lowers TCO and Grows its Business with SingleStore on AWS “SingleStore has seriously decreased our infrastructure complexity, allowing us to move faster and with more confidence. This all started with search, but now it's far bigger than that. By implementing SingleStore, we get to impact everything.” Franco Gilio Co-Founder and CTO, publica.la Faster search results 70X Queries per minute for real-time performance 120K Publica.la is now processing millions of rows per second Millions/:01 Saving $1,000+/mo. DB cost + massive opportunity cost USD1k Dashboard acceleration 35% [publica.la](https://publica.la/) is the Shopify for digital content. It enables authors and content creators to have their own custom storefront to share and sell eBooks, audiobooks, and other digital content direct to consumer (D2C). Booksellers, publishers, media companies, influencers, and many others can reach readers worldwide, increase their incomes, and create sales strategies based on content and user metrics. Authors and content creators can remain focused on creating or selling great content and their audiences can enjoy that content from any device at any time. publica.la’s interactive reader lets them highlight text, take notes, transform text into audio, translate into any language, and more. publica.la’s goal is to be the default D2C solution for publishers in LATAM and EMEA, and it has already amassed some impressive business metrics: - 1+ million active users consuming more than 2.5 million titles - 1,200+ stores - 250+ customers including Narcea, EUNSA, eBooks Patagonia, libreka! Distribution, alphaeditorial, Grupo Planeta, Penguin Random House, Lejister.com, and Mandioca - Serves 23 countries, and that figure is growing - High-profile investors include Stripe, ChileVentures, FenVentures, Berkeley SkyDeck, Lighter Capital, and Start-Up Chile ## Challenges/Goals publica.la intends to democratize and decentralize content commerce, providing a one-stop solution for publishers and authors to connect with their audiences, but major challenges stood in its way. publica.la customers were not getting the quality and speed of search results they needed, even though the company was putting a great deal of effort into this functionality. “Our original database solution was not scaling, it was failing. In some cases, we couldn’t provide search results, and the quality of the results was not very good,” said [Franco Gilio](https://www.linkedin.com/in/fgilio/), Co-Founder and CTO, publica.la.Inability to scale its search capabilities was the primary reason publica.la started looking for a new database solution, but its infrastructure complexity also posed an issue. “We had difficulty managing all the different tools and software we were using; MySQL, PostgreSQL, and Redis. We were going to add Elasticsearch to solve the search issue, but it wasn’t optimal,“ said Gilio. “Our original database solution was not scaling, it was failing. In some cases, we couldn’t provide search results, and the quality of the results was not very good.  We had difficulty managing all the different tools and software we were using; MySQL, PostgreSQL, and Redis. We were going to add Elasticsearch to solve the search issue, but it wasn't optimal.” Franco Gilio Co-Founder and CTO, publica.la ## Technology Requirements publica.la needed to be able to scale search, as it was experiencing growth by thousands of publications per month. Some new customers have up to 100,000 titles to add to their content library, representing millions of pages. Gilio and the team tried to use indexes in Managed PostgreSQL, as MySQL did not support full-text search at the time, but it still did not scale as well as they wanted.“It was a solution we knew would last about two years, then we would need to migrate to a more mature solution,” said Gilio. “If we only cared about search, Elasticsearch may have been the right solution. But the key for us is to be able to manage all of our data infrastructure in one data platform, which was not something Elasticsearch would facilitate.” *Franco Gilio, Co-Founder and CTO, publica.la* Publica.la also wanted to reduce infrastructure complexity so it could move faster and with more confidence. The original solution was creating friction and lost time inside the engineering team, and this needed to be addressed. “It was a solution we knew would last about two years, then we would need to migrate to a more mature solution. If we only cared about search, Elasticsearch may have been the right solution. But the key for us is to be able to manage all of our data infrastructure in one data platform, which was not something Elasticsearch would facilitate.” Franco Gilio Co-Founder and CTO, publica.la ## Why SingleStorepublica.la’s original data environment was a textbook example of database sprawl. It included: AWS RDS with MySQL 8Three different RDS databases PostgreSQL 14RedisAdding Elasticsearch to the mix would further increase the complexity of the infrastructure. Other search solutions under consideration included Algolia, which the team thought was fantastic, but too expensive; or having Elastic.co host the cluster. AWS’s version of Elasticsearch, Amazon OpenSearch Service, as well as Amazon Aurora and Aurora Serverless, also came up in discussions — but that was also when publica.la learned about SingleStore. “Some of our most important revenue-generating customers started to grow faster than we were able to manage with PostgreSQL," said Gilio.“Originally, our aim was just to scale full-text search. But when we learned that SingleStore was an option to solve that issue, we also saw that we would be able to manage costs in a more predictable way. SingleStore has seriously decreased our infrastructure complexity, allowing us to move faster and with more confidence. This all started with search, but now it's far bigger than that,” said Gilio. “Some of our most important revenue-generating customers started to grow faster than we were able to manage with PostgreSQL. ” Franco Gilio Co-Founder and CTO, publica.la ## Solution “With SingleStore, we are able to put everything in one single cluster,” said Gilio. “We can take advantage of that cluster's performance for all the other databases we run, which is something that we couldn’t do with Elasticsearch. We were just putting that money in Elasticsearch and only impacting search. But by implementing SingleStore, we get to impact basically everything, including search.” ### Replaced MySQL, PostgreSQL, Redis, and Elasticsearch with SingleStore publica.la used SingleStore to replace MySQL, PostgreSQL, Redis, and Elasticsearch, implementing [SingleStore Helios](https://www.singlestore.com/product-overview/) in a SingleStore S1 cluster hosted on AWS. In addition to handling full-text searches, SingleStore also supports transactions, enabling publica.la to implement full translytical/HTAP functionality in a single database. publica.la started with a small proof of concept using the staging database, which was a MySQL database in AWS. In the original database, it had complex indexes to speed up queries to acceptable levels. When the team tested the staging database with SingleStore, it didn’t use any custom indexes — but the speed was either significantly faster or instantaneous. #### Reducing Complexity and Gaining a 16X Speed Increase “We just couldn’t believe it. It looked like an illusion, but it was real. With SingleStore, it's just one single cluster. That single cluster is more than powerful enough to run all those databases much faster than before,“said Gilio. The typical publica.la query has zero to two joins, but some dashboard and reporting queries have 10-15 subqueries. The team has tested more complex queries, he added, "and we've seen great results!" “With MySQL, Google Data Studio was so slow it was almost unusable,” Gilio added. "We've now migrated the dashboards to use SingleStore and are seeing an average of a 16X speed increase." “We just couldn’t believe it. It looked like an illusion, but it was real. With SingleStore, it's just a single cluster, and that one cluster is more than powerful enough to run all those databases much faster than before. With MySQL, Google Data Studio was so slow it was almost unusable. We've now migrated the dashboards to use SingleStore and are seeing an average of a 16X speed increase.” Franco Gilio Co-Founder and CTO, publica.la ## Outcomes Choosing SingleStore has delivered significant advantages to publica.la and its customers: ### 70x Faster Search Results + 35% Dashboard Acceleration “We wanted to benchmark search and the analytics database because we thought those were going to be the ones that are going to see the most impact. We took special care to compare SingleStore against a similarly priced instance in AWS, just to make it a little bit fairer,” said Gilio. SingleStore was so fast publica.la didn’t even need to run its usual benchmarks. Search benchmarks were up to 70X faster than the previous solution, and the dashboards were 35% faster. These performance improvements led to a faster and better experience for users across all areas: - Search - Storefronts - Dashboards - Exports - Other functions “Having everything in one place with SingleStore enables our customers and their users to get better answers faster,” said Gilio. The system supports 500+ concurrent users, and as publica.la’s business grows, with SingleStore it will be able to support tens of thousands of concurrent users and beyond. "We can now query the DB in more creative ways without fear of slowing down the app," he added. #### Real-Time Performance Processing Enables 120k Queries Per Minute “About 98% of what we do with the database is real-time, so low latency is extremely important for us,” explained Gilio. By deploying SingleStore, publica.la is delivering real-time performance on nearly all queries, processing millions of rows and 2,000+ queries per second. “We could have taken down the platform for about six hours while we migrated everything and run lots of checks to validate that the migration was successful. We could have spent months refactoring our app so it could work with both databases at the same time. We also could have hired an expensive professional services firm to help us. Instead, we discovered Arcion Cloud.” Franco Gilio Co-Founder and CTO, publica.la ### Saving $1,000/Month in DB Cost; Opportunity Cost: Incalculable Depending on customer and user activity, publica.la was experiencing major cost spikes due to associated services, such as the AWS Network Address Translation (NAT) gateway. By migrating to SingleStore, publica.la was able to gain better cost predictability. Previously, using MySQL, it had to push data to Amazon S3 daily to support cost-effective operations. With SingleStore, publica.la has now eliminated this process, thus minimizing data movement. “My expectations were high and SingleStore has exceeded them. The solution is very mature and it shows. The experience with everyone has been very good, supportive, and responsive.” Franco Gilio Co-Founder and CTO, publica.la These performance improvements and cost predictability are saving publica.la at least $1,000 per month, and those savings will almost certainly increase as its customer base grows. On top of that, the opportunity cost in terms of time saved due to not dealing with database sprawl, complex query workarounds, and other complications is almost incalculable. “We usually worry about data and cost spikes, but now we’re in a much better place with SingleStore. We can focus on onboarding customers without worrying about the impact,” said Gilio. #### Responsive Support and Quality Documentation “My expectations were high and SingleStore has exceeded them. The solution is very mature and it shows," said Gilio. "The documentation is very good and perfectly clear. The experience with everyone has been very good, supportive, and responsive to our big and small issues. When SingleStore promises to ship a fix, they deliver, and that’s amazing.” publica.la is excited to be exploring several other SingleStore features including: - [Workspaces](https://docs.singlestore.com/cloud/getting-started-with-singlestoredb-cloud/about-workspaces/what-is-a-workspace/) to isolate workloads, as it currently runs production and staging on the same SingleStore cluster - [Unlimited Storage](https://www.singlestore.com/blog/the-future-is-bottomless/) to auto-scale storage so it can phase out the MySQL database and its cumbersome daily processes ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/pyler/ # How PYLER Uses SingleStore to Power Real-Time Brand Safety and Contextual Intelligence at Scale Discover how PYLER modernized its data architecture with SingleStore to achieve real time ad validation, faster insights, and scalable analytics. # How PYLER Uses SingleStore to Power Real-Time Brand Safety and Contextual Intelligence at Scale Data size: Petabytes Queries per minute (QPM): 10,000 + Data volume loaded per day: 100 GB PYLER delivers real-time video understanding that helps brands ensure brand safety, contextual relevance, and trust. Its technology interprets video, audio, and metadata to determine whether ads appear in the right context. The company supports major brands through its three flagship products: AiD for end-to-end brand safety validation, AiM for contextual integrity, and Measure for video based market intelligence. Clients such as Samsung Electronics, Kenvue, L’Oréal, and LVMH rely on these platforms to measure, verify, and understand the environments in which their ads appear. ## Challenges / Goals Once brands start using PYLER’s technology, they stay. The scale of data PYLER processes has been growing exponentially as leading brands continue to rely on its solutions. To date, PYLER has analyzed over 700 million videos and now processes more than 2 million videos every day — a number that continues to climb. As the volume of video data has surged, efficient large-scale data management has become mission-critical. To stay ahead, PYLER made a strategic decision to operate at the cutting edge by becoming one of the first startups to deploy NVIDIA B200 GPUs and partnering with SingleStore, a disruptive leader in modern data infrastructure, to ensure performance and scalability at every level. Before adopting SingleStore, PYLER ran its operations on a combination of PostgreSQL Aurora and AWS Lambda functions. This architecture worked for smaller workloads but struggled as the company expanded. Their primary data sources, real-time ad campaign performance metrics and contextual video analytics, produced an overwhelming stream of structured and unstructured data. The growing scale exposed serious pain points. “Business-wise, slow reporting and insights made it difficult to deliver real-time campaign feedback to customers,” said Dongchan Park, VP of Engineering. “Technically, Aurora with Lambda required frequent ETL-style batch jobs, which introduced latency and complexity.” Performing joins between live aggregated data and historical datasets became increasingly inefficient and expensive. Maintaining this pipeline demanded constant optimization. Every dashboard refresh, every query, and every customer report came with the risk of latency spikes. These delays affected PYLER’s customers directly. Brand managers waiting for campaign verification data often faced delays, which meant missed opportunities to adjust placements or protect brand reputation in real-time. ## Technology Requirements PYLER outlined several technical priorities for its new system: - Real-time ingestion and aggregation across streaming video analytics and ad performance data - Efficient joins between live and historical datasets for contextual validation - Unified support for both transactional and analytical workloads in one database - Query performance under two seconds even for complex, join-heavy analytics - Scalable and reliable architecture that supports tens of thousands of queries per minute and hundreds of users concurrently - Operational simplicity so engineers could focus on new features instead of performance tuning “With SingleStore, careful shard and sort key design delivers excellent query performance along with outstanding ingestion speed. This has reduced engineering overhead and operational stress while enabling our team to focus on higher-value initiatives.” Dongchan Park VP of Engineering ## Why SingleStore The decision to move to SingleStore came after years of tuning PostgreSQL Aurora to its limits. Hyeongjun Park said, “In PostgreSQL, optimizing queries with multiple large table joins and aggregations was very difficult, even with materialized views and partitioning.” By migrating to SingleStore, PYLER gained the ability to ingest, analyze, and serve data simultaneously. “With SingleStore, careful shard and sort key design delivers excellent query performance along with outstanding ingestion speed for large-scale advertising data,” says Dongchan Park. “This has reduced engineering overhead and operational stress while enabling our team to focus on higher-value initiatives.” SingleStore’s hybrid transactional-analytical (HTAP/HDAP) architecture proved to be the defining factor. “The most important differentiator for us is SingleStore’s hybrid capability,” says Hyeongjun Park. “It is very rare to find a database that can effectively handle both transactional and analytical workloads at scale.” The results were immediate and measurable: more than a 10× improvement in data ingestion speed and over a 100× reduction in query latency. These gains directly impacted customers by enabling true real-time validation and campaign measurement. “Our backend engineers no longer need to spend excessive time and cost on database performance tuning,” notes Dongchan Park. “Instead, they can now focus on delivering new features and strategic value.” Finally, SingleStore’s architectural flexibility allows PYLER to scale efficiently while preparing for the future. Hyeongjun Park adds, “We currently use pgvector for vector workloads, but we see potential to move to SingleStore’s native vector capabilities as our requirements for larger-scale throughput and lower latency increase.” ## Solution PYLER deployed SingleStore to simplify its data operations and support real-time analytics at scale. Using SingleStore Workspaces, the team can create and manage environments directly through the Helios portal, which they describe as intuitive and easy to deploy. This approach allows PYLER to scale its infrastructure efficiently and manage workloads across services without operational friction. The company also uses SingleStore Pipelines for S3 backup, ensuring reliable data protection and simplified recovery as their datasets continue to grow. Together, these capabilities give PYLER a streamlined and resilient data architecture that supports continuous performance and operational confidence. Finally, SingleStore’s separation of compute and storage gives PYLER the flexibility to scale dynamically as workloads fluctuate. During large campaigns, compute clusters expand automatically to meet demand, then contract when volume subsides. This architecture keeps query latency consistently low while maintaining predictable infrastructure costs. Together, these capabilities give PYLER the performance, stability, and simplicity it needs to deliver real-time brand-safety analytics to some of the world’s most recognized brands. ## Outcome **Real-Time Speed at Scale** PYLER now processes millions of rows per second while maintaining performance and stability. Real-time ingestion allows the company to deliver up to the minute brand safety and contextual validation results, helping brands act immediately on data driven insights. **Sub Two Second Query Latency** Complex analytical queries involving joins and group operations now return in less than two seconds, providing interactive dashboards and live feedback for brands. **Ten Times Faster Ingestion and Hundred Times Faster Queries** PYLER achieved more than a tenfold improvement in data ingestion and a hundredfold reduction in query latency, allowing real-time analytics at petabyte scale. **Greater Engineering Efficiency** SingleStore simplified data operations and freed engineers to focus on product innovation rather than tuning. **Flexible Scaling and Cost Control** With separation of compute and storage, PYLER scales elastically during peak campaign loads and optimizes infrastructure costs when usage declines, ensuring predictable performance and spend. ## Summary By adopting SingleStore, PYLER unified its transactional and analytical workloads, eliminating batch latency and enabling real-time analytics at global scale. The company now delivers sub two second queries, faster ingestion, and simplified operations. With SingleStore as its foundation, PYLER continues to expand AI driven video understanding and brand safety analytics for some of the world’s most recognizable brands. ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/rightsense/ # RightSense Uses SingleStore Vector Similarity Search on AWS to Ring Up AI-driven Actionable Insights for Retailers “ Retailers who formerly had to wait 1-2 days to understand what was happening with their operations can now get a finger on the pulse of their business in real time. # RightSense Uses SingleStore Vector Similarity Search on AWS to Ring Up AI-driven Actionable Insights for Retailers “Retailers who formerly had to wait 1-2 days to understand what was happening with their operations can now get a finger on the pulse of their business in real time.” Sangam Sangameswara Co-Founder and CEO, RightSense Faster: 24hrs to 1sec 86,000x Skills/resources saved 1-2 FTE Return on spend for retailers 15-20% In today's hyper-competitive retail landscape, success hinges on more than just offering great products; it's about leveraging data to gain a competitive edge. Yet, according to some industry observers, fewer than 10% of businesses fully capitalize on the value of their data with existing solutions. Based in Cupertino, CA, USA, [RightSense.ai](https://rightsense.ai/) is focused on improving the data literacy of the workforce. RighSense.ai offers Automated Data Stories (e.g., analysis of customer segmentation, sales trends or inventory shortfalls) integrated with real-time chat powered by large language models (such as GPT-4) to deliver dynamic, actionable insights for an organization's specific KPIs. By automating the detection of outliers and anomalies, the company improves organizational data literacy and productivity, and enables informed decision-making while eliminating the limitations of traditional dashboards. RightSense facilitates engaging and interactive discussions that are not merely based on KPIs but are in fact customized around role-specific and function-specific KPIs. This personalized approach not only elevates organizational productivity but also unlocks and significantly amplifies the value of an organization’s data. By focusing on individualized, relevant KPIs, RightSense ensures that teams do not simply collect data but use it strategically to drive measurable growth. RightSense transforms data lakes and other data repositories into “KPI lakes” via automated data pipelines, allowing users to upload and interact with their data through engaging dialogues. For example, using historical and real-time transactional data, combined with relevant external data such as weather and foot traffic, RightSense delivers: - Actionable insights (relevant, context-enriched KPIs) by combining traditional analytics dashboards with real-time, chat powered interactions - Detection of outliers and anomalies in business operations - Other actionable items specific to various roles across an organization *Sangam Sangameswara, Co-Founder and CEO, RightSense* “Many organizations today are talking in general terms about becoming data-driven, and data-literate,” said [Sangam Sangameswara](https://www.linkedin.com/in/sgsangam/), Co-Founder and CEO, RightSense. “We back that up and make it a reality by helping our customers determine which data to focus on and act upon, in real time.” Transcending conventional reliance on visual representations and statistical charts found in reports and dashboards, RightSense offers interactive narratives that are rich in context, making them more memorable, compelling, and convincing. This not only fosters improved data literacy but also encourages participation across the organization, thereby boosting productivity. Such interactivity effectively amplifies the value derived from data, ensuring a better return on data assets. ## Challenges/Goals RightSense was founded on a mission to democratize data. The goal: to help entire teams, technical and business users alike, take advantage of the data their organizations already have, and combine it with third-party data, to drive real-time insights. The team built an MVP and wanted to expand into back-office applications like ERP. It was difficult, however, for users to access and act on their data. "We wanted to empower our customers with self-serve analytics," said Sangameswara, “but extracting meaningful insights from data was time-consuming and labor-intensive." RightSense's current customer base is concentrated mainly in retail, which means it needs an agile data architecture to quickly add large networks of stores. RightSense originally was using a columnar architecture, and in the words of Sangameswara, “Performance was not at all acceptable.” The team then tried MariaDB, a relational database with a rowstore/columnstore architecture, but found it challenging: “As you started adding more customers, stores, and users, you had to rework everything.” RightSense could not effectively support its current data workloads, much less its 25% YoY forecast growth. When Sangameswara and the team started building gen AI functionality into the product with open source technologies, they encountered issues such as the inability to add context, and limitations in the amount of data their customers could access. RightSense needed to overcome these basic data challenges. It also wanted to equip its customers with credible, defensible conclusions. “Not only did we want to empower people to quickly obtain the right data when they need it,” added Sangameswara. “We also wanted them to be able to answer the question: ‘How did you arrive at your figures or conclusions?’ It could not continue to be a black box, as they were accustomed to from other sources.” ## Technology requirements RightSense serves a growing target market of companies, many of which have limited internal IT resources of their own. It provides a valuable service by putting leading-edge data capabilities at its customers’ fingertips to give them instant insights that help everyone do their jobs better. Similarly, RightSense wanted a data platform that would free its team to focus not on data infrastructure maintenance and technical debt but on continually adding greater value to its RightSense core offerings. “We wanted our customers to be able to answer the question: ‘How did you arrive at your figures or conclusions?’ It could not continue to be a black box, as they were accustomed to from other sources.” Sangam Sangameswara Co-Founder and CEO, RightSense So its core technology requirements in a new data platform included: - Ability to run as a fully-managed service in the cloud - GPT-driven Gen AI functionality - Built-in vector database capabilities to avoid latency and complexity ## Why SingleStore The RightSense team chose SingleStore because it is a high-performance, scalable, distributed relational database and fully-managed cloud service that supports transactional, analytical, and vector workloads. It natively supports multiple data models including structured data, semi-structured data based on JSON, time series, full text, spatial, key value and vector data. With fast data ingestion from multiple sources and low-latency queries across all data, it offers unmatched real-time capabilities. SingleStore built Vector capabilities into its core platform in 2017 and many customers are using SingleStore to power their generative AI applications. ## Solution RightSense’s FUSION platform runs in [SingleStore](https://www.singlestore.com/product-overview/) on AWS. Customers have their own KPI data lake in the RightSense Cloud and all data is isolated from other customers. If they have JSON, Excel, CSV or other source files, they can upload those directly. Inbound XML files are processed in Databricks, and SingleStore Pipelines perform millisecond ingest of the resulting Parquet files into SingleStore. SingleStore uses real-time Retrieval-Augmented Generation (RAG) on data from all sources to enrich the data with context. FUSION generates vector embeddings on uploaded data and stores them in SingleStore. FUSION uses SingleStore’s vector similarity search using dot_product to perform semantic search. Automated Data Stories are automatically generated by the LLM based on KPIs and tailored by role, e.g., Store Manager, Regional Manager, In-Store Sales. *Real-time Retrieval-Augmented Generation (RAG) in SingleStore* ### The right product backed by comprehensive support The RightSense team cited excellent support from SingleStore Technical Support with a number of things including performance optimization with proper indexing. That along with regular communications made for a smooth implementation process. Per Sangameswara, “LLM integration was seamless; there was no complex learning curve to use the SingleStore solution,” and the team was able to easily create embeddings using custom functions in SingleStore. ### How RightSense customers use FUSION RightSense uses ChatGPT 4 and OpenAI APIs to present users with two flexible modes to access the data they need in real time with its FUSION product: ## ***FUSION Dashboards present curated data in snackable summaries*** Users can quickly scan snackable summaries FUSION has auto-created from streaming data based on the user’s role-based, function-specific KPIs and quickly drill down into the details. The system will present information such as analytics by product, or financials and budget data. As users navigate, the RightSense ChatGuru pops up to answer questions and offer guidance. FUSION determines user intent and understands that core calculations like Profit Margin require synergizing multiple KPIs to provide actionable insights. “LLM integration was seamless; there was no complex learning curve to use the SingleStore solution.” Sangam Sangameswara Co-Founder and CEO, RightSense ## ***FUSION Open Search answers specific user questions*** Users can ask FUSION questions such as, “How were my sales last month?” and “How did our business do last month overall?” FUSION can quickly build various chart types to isolate data points such as forecast vs actual results. It also nimbly answers more granular follow-up questions such as, “How did my categories do last month?” and forecasting queries such as, “What will my Top 30 In-Store Categories be next month?” A core element of AI is continual evolution through machine learning, and one of the many ways FUSION embodies this is by elevating user search results to top-level questions at the product level to offer better insights faster over time. Users can instantly share results via email or text. ## OutcomesBefore RightSense, retailers depending on other systems were forced to wait for days to get a reading on their business and compounded their losses in organizational opportunity cost with internal teams asking each other for answers. “With RightSense, powered by SingleStore on AWS, retailers who formerly had to wait 1-2 days to understand what was happening with their operations can now get a finger on the pulse of their business in real time,” said Sangameswara. Calculating this conservatively, from a single day to real time, yields more than an 86,000x performance improvement. Other benefits RightSense is now able to deliver to its customers include: ### A 15-20% increase in average return on campaign spend By getting the answers they need in real time, RightSense customers can measure things like the effectiveness of promotional campaigns faster, resulting in far better return on investment (ROI): a 15-20% increase in their average return on campaign spend. ### Massive TCO savings: an equivalent of 1-2 FTE RightSense enables organizations to be data-aware without having to invest in specialized IT skills and resources, which saves the equivalent of 1-2 full-time employees per customer. Benefits accruing to RightSense as a result of choosing SingleStore on AWS include: ### One database for vector data and real-time analytics also reduces RightSense’s TCO SingleStore has helped RightSense reduce its own TCO by reducing the number of databases required to develop and support real-time generative AI applications to one. With SingleStore, RightSense gets native vector storage and real-time analytics in a single data platform. Another source of savings: “ETL costs are zeroed out with SingleStore,” added Sangameswara. “With others such as Micron, the cost is fairly high.” ### Meeting SLAs today and poised for future growth RightSense has now lowered the risk of failing to meet customer SLAs. It can now confidently serve large customers knowing it does not face data size limitations. With SingleStore, RightSense can seamlessly scale to support current and future customer data volumes. “RightSense enables organizations to be data-aware without having to invest in specialized IT skills and resources, saving the equivalent of 1-2 FTE per customer.” Sangam Sangameswara Co-Founder and CEO, RightSense ## Future Today a typical RightSense customer may have a retail network with 85 stores, or 130 stores. Every new customer RightSense signs means significant growth in both revenue and data requirements. The company is forecasting near-term YoY growth of 25%. New initiatives where SingleStore can play a role include RightSense FUSION Product Groupings, which actively monitor and measure inventory optimization, and also provide real-time analytics on revenue and ways to recapture lost productivity. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/segmetrics/ # SegMetrics Quantifies Touchpoint Values throughout Customer Journeys with Time Series Analytics from SingleStore on AWS Read this SegMetrics blog post with Databricks “ On the old system, we couldn’t bring in too much data. # SegMetrics Quantifies Touchpoint Values throughout Customer Journeys with Time Series Analytics from SingleStore on AWS “On the old system, we couldn’t bring in too much data. We had a large enterprise account sign up as a client, bringing a million web views a day. We had to add smart filtering to ensure it wouldn’t make our database explode. With SingleStore, I don’t have that concern anymore.” Keith Perhac Founder and CEO, SegMetrics Importing and parsing 1 billion tag applications per day 1B/Day Of daily UPSERTS 50GB Ingested per second 1M Rows Concurrent queries 5,000 Average query speed 200ms Only 12 hours to migrate 4TB to SingleStore via Arcion Cloud 4TB 12hrs [SegMetrics](https://segmetrics.io/) offers a martech application that bridges gaps between the top, middle, and bottom of the funnel to give digital marketers an unrivaled view into how each step in their marketing strategy is performing: who is engaging with their messaging and who is not. The platform gives marketers the insights they need to optimize campaigns and customer lifetime value (CLV), progress leads down funnel, and improve their bottom line. The SegMetrics platform works by pulling in huge volumes of tagged data from disparate sources such as Stripe, Shopify, Facebook, and CRM systems into a singular customer journey for each of its clients’ end customers. *Keith Perhac, Founder and CEO, Segmetrics* "At the end of the day, what we're trying to do is deliver a whole customer journey for our clients, put a dollar value on any combination of actions, and help clients convert prospects throughout the funnel," said Founder and CEO [Keith Perhac](https://www.linkedin.com/in/keithperhac/). ## Challenges/Goals Most marketers spend a lot of time mastering website analytics, learning all the different variables, terms, and metrics. With SegMetrics, marketers gain the ability to look at how customers progress throughout the entire marketing journey, not just things like website interactions. SegMetrics works with thousands of clients every year, and what it found challenging was ingesting terabytes of data at any one time and delivering real-time results to each client. Like other web analytics companies that run on SingleStore, SegMetrics pulls a huge volume of data from web tracking and CRM systems like HubSpot and Salesforce, as well as purchase and refund data, into its database daily, via APIs enabling nearly 100 integrations. The data volumes are significant. For example, when one of its clients tags a contact in its CRM based on a behavior or action, that contact can end up having up to 200 tags. Multiply that by the hundreds of thousands or millions of people in a CRM system, and suddenly SegMetrics is importing and parsing more than a billion tag applications per day across its client base. “Our challenge has been the amount of data we're processing. SegMetrics pulls in many different data types: click data, CRM data, purchase data, refund data. Essentially we pull in data from every source our clients have that touches and tags their customers, so SegMetrics imports and parses about a billion tag applications per day," said Perhac. "The issue we ran into with our previous database was the inability to do this in a highly performant way.” "SegMetrics has API connections to a lot of our clients' data systems. We pull in and normalize the data into what we need, parse the data into SQL files, and then run them against the database. We can run 200,000 rows at a time against the database to UPSERT them in,” he explained. "So for example, if someone in a client’s CRM system updates the time they want to meet with their customer or updates the industry, SegMetrics catches all that and then pushes the data into our system." In its previous system, a managed DigitalOcean MySQL database, SegMetrics had a limitation on the amount of data that it could ingest, and parsing speeds were very slow. Getting data into DigitalOcean was fast because it was a non-distributed, single source insert — but getting the data out as the database grew meant double, triple, or 4X the cost. “We were at, I think 80 or 90% of the database size, and our next step up would have raised our pricing to about $10,000 a month,” said Perhac. “We were a big customer for DigitalOcean, which concerned me because at the time we were only at five terabytes.” “We pull in data from every source our clients have that touches and tags their customers, so SegMetrics imports and parses about a billion tag applications per day. The issue we ran into with our previous database was the inability to do this in a highly performant way.” Keith Perhac Founder and CEO, SegMetrics SegMetrics found itself out of data. “We were at a specific size, and then we had to upgrade to the new server in MySQL, in DigitalOcean, and it took 72 hours to upgrade. Essentially going from an S2 to an S4 took three days for DigitalOcean, which was not great for us,” Perhac said. ## Technology Requirements Two compelling events prompted SegMetrics to look for another database. One was the slowness of the MySQL on DigitalOcean solution, as a single customer could slow down the reporting servers considerably if it were running multiple heavy queries. The second was that whenever SegMetrics was low on database space or various issues popped up, it could take days to provision a new instance to get the support they needed. To meet the evolving needs of its clients, Perhac and his team realized the need to migrate their client data from MySQL on DigitalOcean to a database that would give all of its clients real-time access to their data — and the reliable uptime to ensure the system would be there to consistently deliver this. “We were at a specific size, and then we had to upgrade to the new server in MySQL, in DigitalOcean, and it took 72 hours to upgrade. Essentially going from an S2 to an S4 took three days for DigitalOcean, which was not great for us.” Keith Perhac Founder and CEO, SegMetrics ## SegMetrics wanted a solution that would enable it to increase the amount of data stored while maintaining compute. Pricing and performance were also of top concern, as was finding a partner that could facilitate the migration from MySQL on DigitalOcean to a new solution. *SegMetrics helps companies optimize for revenue at each touchpoint in their marketing funnel* ## The new database needed to:Enable ultra-fast ingest for millions of events per second and provide instant availabilityDeliver sub-second latencies with immediate consistencyProvide universal storage for transactions and analyticsFacilitate unlimited storage with separation of storage and compute in an operational - analytic databaseBe compatible with MySQLWork well with database replication partner solution Arcion to facilitate database migration ## Why SingleStore Perhac and team evaluated AWS Aurora, AWS Redshift, PlanetScale — and SingleStore, thanks to Perhac's colleague and friend [Aaron Francis](https://www.singlestore.com/blog/author/aaron-francis/), Co-Founder of [Hammerstone Dev](https://hammerstone.dev/). Francis also introduced Perhac to the co-founder of another SingleStore customer, a website analytics company that processes far more data than SegMetrics with great performance. Compared to the Amazon solutions, SingleStore had the best pricing model for what SegMetrics needed, as well as top-notch support, and would enable the ease of migration so it didn't have to change its entire language. "On paper, SingleStore looked like the best and easiest solution to switch to, and in practice it was even better than it would have been going to something like Amazon Aurora,” said Perhac. As for PlanetScale, its pricing structure eliminated it immediately from consideration, as it charges per row. "I couldn't even price out PlanetScale, but back-of-the-napkin calculations made it seem incredibly expensive for our use case," he added.SingleStore offers a real-time distributed SQL database designed to power modern applications and real-time analytics. It scales real-time applications and analytics to any amount of data and users while maintaining millisecond (ms) response times. SingleStore is built on a distributed scale-out architecture that scales linearly based on customer business needs, and it is built from the ground up to drive complex analytics on operational data as it lands. SegMetrics chose SingleStore for those reasons and more: Real-time analytics: SingleStore reduces time-to-insights with a database optimized for fast ingest and low-latency query performance with high concurrency.The ability to eliminate database sprawl: This modern, cloud-native, relational database delivers unlimited storage and scalability in a system that is durable, available, secure and resilient to failure, across cloud providers and on-premises. SingleStore is multi-model, supporting all major data types and unifying transactional and analytical workloads.MySQL compliance: The SegMetrics team wouldn’t have to learn a new query language to work with SingleStore. Cost-efficiency: SingleStore’s cost was significantly lower than PlanetScale for comparable performance levels.Its partnership with [Arcion Cloud](https://www.arcion.io), as discussed in part [here](https://www.arcion.io/case-studies/segmetrics-zero-downtime-migration). ## Solution SegMetrics chose [SingleStore Helios](https://www.singlestore.com/product-overview/) as the foundational database for its platform. Next, the team needed a way to migrate from MySQL on DigitalOcean to SingleStore on AWS while minimizing downtime so clients would experience only minimal disruption, allowing SegMetrics to adhere to committed SLAs.The initial migration plan involved a one-time manual migration of a snapshot of data at a specific point in time, followed by a final migration of the latest data. Due to the millions of UPSERT operations per hour and 50GB of daily upserted data, the downtime would have spanned more than 32 hours. SegMetrics connected with SingleStore and its migration partner, Arcion, for a different approach that resulted in a migration rate of 110 million rows in less than four minutes.The teams went through a three-week process to troubleshoot the migration strategy and fine-tune the configuration to get the data import delay under 10 minutes.SegMetrics could switch between SingleStore and DigitalOcean for its data through a single line of code in the application’s configuration file. The team used that capability to work through a feature-flag release. They were able to scale the SingleStore data queries while ensuring they could quickly address any issues during the migration without impacting the user experienceUltimately it took just 12 hours to migrate the 4TB SegMetrics database from MySQL on DigitalOcean to SingleStore on AWS. Real-time Change Data Capture from Arcion enabled SegMetrics to achieve ongoing synchronization between the old system and SingleStore, thus ensuring the data was up-to-date when SegMetrics cut over to the new system. Keith Perhac Founder and CEO, SegMetrics ## The system pulls in and normalizes time series data, then parses it into SQL files and runs against the SingleStore column store, tuned to accelerate query performance by aggregating on one or two columns. SegMetrics clients access data via a multi-tenant architecture. “Our clients can make highly specific queries,” said Perhac, “such as: ‘I want to see everyone who clicked this ad four days ago, who are named Bob, did not make a purchase, have a subscription to X media…and they like cats.’ A query such as this may join eight tables and runs filters on six of them, then aggregates the data down to the final results. Our queries are complicated, which is a blessing and a curse. SingleStore has made it so that these queries are processed in less than 50ms, rather than the 30+ seconds it took previously.”SegMetrics is using SingleStore Platform features, including:[SingleStore Pipelines](https://www.singlestore.com/blog/pipelines/), which support and streamline SegMetrics’ data ingestion requirements by continuously loading data as it arrives from external sources. As a built-in component of SingleStore, Pipelines can extract, shape (modify), and load external data without third-party tools or middleware. Pipelines pull data from Amazon S3, and SegMetrics also uses raw SQL files for inserts.[SingleStore Workspaces](https://docs.singlestore.com/managed-service/en/getting-started-with-singlestoredb-cloud/about-workspaces/what-is-a-workspace.html), which enable customers to run multiple workloads on isolated compute deployments while providing ultra-low-latency access to shared data. This ensures applications are always operating on the latest data. *SegMetrics lets its customers see each contact, purchase, or event that drives its reports* ## Outcomes By migrating from MySQL on DigitalOcean to SingleStore on AWS, SegMetrics expanded its real-time analytics capabilities, scaled its data capacity, and is growing its customer base and revenue. ### Ability to Handle Twice as Much Data Enables Insights and Growth “On the old system, we used to filter what data we brought in and couldn’t bring in too much data. We had a large enterprise account sign up as a client, bringing a million web views a day,” said Perhac. "We had to add smart filtering to our processing to ensure it wouldn’t make our database explode. With SingleStore, I don’t have that concern anymore." “One of the things I'm really happy about with SingleStore is that compute and storage are separate, which means we can ingest 100TB of data and only pay the compute on that volume of data.” Keith Perhac Founder and CEO, SegMetrics ## SegMetrics has doubled the data it works with, ingesting one million rows per second. “We’re growing, revenue is growing, and new customers are coming in," said Perhac. “I’m very glad we moved over. We have much more confidence to tell our clients we’re bringing in a lot more data now, without sacrificing reporting speed.” ### Reducing the Complexity and Cost of Real-Time Analytics “SingleStore simplified a lot of our analytical queries because it has special features that are specific for time series data,” said Perhac. With the previous system, SegMetrics had to do multiple subqueries and joins on the table to get a visitor and potential buyer’s first click. Now, the system can get right to the first click and enable clients to take action. “I’m also really happy that SingleStore has a separation of storage and compute,” he added. “I can throw in 100TB of data because I’m essentially paying Amazon S3 prices on storage, and the compute cost only applies to the data being worked with.” #### Supporting Customers by Importing and Parsing One Billion Tag Applications Daily Each SegMetrics client may have 100 to 200 tags, multiplied by the thousands or millions of people in the CRM, which adds up to more than one billion applied tags imported and parsed daily. "SingleStore has helped us save a lot of developer time because it never goes down, and it has reduced our opportunity costs. We can now support clients with millions of web views per day with no concerns," said Perhac. SegMetrics uses the analytics in SingleStore to parse that data to provide actionable insights for its clients. “At any point during that customer journey, we can look at one of those touch points and say, ‘People who take this action are worth $500. People who don't take that action are worth $200. So doing this increases customer value by $300,” he explained. “SingleStore simplified a lot of our analytical queries because it has special features that are specific for time series data.” Keith Perhac Founder and CEO, SegMetrics ## SegMetrics’ own internal reporting has also benefited from adopting SingleStore. SegMetrics captures on average 15 million clicks per day, and when it would try to access this daily click data for the last 30 days the request would often time out in MySQL. This same data pull now loads in just 12 seconds in SingleStore, 24X faster than before. ### Achieving Ultra-fast Time-to-Insight Through 200ms Response on 5,000 Complex Queries Per Second SegMetrics real-time query engines are highly complex, allowing marketers to query on any of their data. At any given moment,  an average of 50 customers are actively running new queries. While that might sound like low concurrency, each customer runs between 10 and 100 queries at a time, which means processing around 500 to 5,000 new queries per minute. “We're seeing around 200ms — less than a second for any query — and can run 100 of them simultaneously. We can query data a lot faster than we used to,” said Perhac. *SegMetrics matches account info and ensures that each purchase is counted once and only once* ## SegMetrics has an alert that goes off if more than 200 queries are on the queue. Back in its MySQL days, it would have to delete those queries in the queue because the system couldn’t catch up. “With SingleStore, even if we do get a backlog because we have so many people running queries at once, the queue clears in a second or two,” said Perhac. ### Eyeing a Future with AI Copilots, More Data, and Further Optimization The SegMetrics team has its eyes on the future of its platform. One use case it wants to explore is using an AI copilot to parse the analytics results into information that people can understand better than numbers. “Even though we’re an analytics tool, a lot of our users are not data people. We can get the results in English in a way that lets them understand and act on these insights better. It also explores what we can bring out of the data without specifically having to ask for it,” said Perhac. “We're seeing around 200ms — less than a second for any query — and can run 100 of them simultaneously. We can query data a lot faster than we used to.” Keith Perhac Founder and CEO, SegMetrics SegMetrics also wants to ingest more data, since the platform running on SingleStore Helios is now able to reliably ingest and parse it. The team also wants to continue optimizing its SingleStore database through SingleStore-specific analytic queries to get better information and using features such as [SingleStore’s Data API](https://docs.singlestore.com/managed-service/en/reference/data-api.html) combined with web performance and security leader [Cloudflare](https://www.cloudflare.com/). “We can ask, ‘What's the first session someone had? What was the second page of their session, on the third Tuesday of the month?’ We want to build systems on top of SingleStore to get those specific answers in a systematic way,” he concluded. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/siemens/ # SingleStore High Performance + Vector Capabilities on AWS Help Siemens and its Customers Make Decisions in Real Time “ With SingleStore, we no longer look at the database as a limiting factor in our business. ” # SingleStore High Performance + Vector Capabilities on AWS Help Siemens and its Customers Make Decisions in Real Time “With SingleStore, we no longer look at the database as a limiting factor in our business.” Christoph Malassa Head of Data and AI Platforms, Siemens Speed improvements enabling real-time dashboards 10-100x Querying billions of rows & PB of Data <100ms <100ms Siemens Pulse Analytics auto-scales from 500 to 100,000 concurrent users 500 to 100,000 From trial deployment to selection of SingleStore 5 days Data dashboards are now ubiquitous, but they were a technological marvel a decade ago. Having visual dashboards in a browser was a major transformation, improving accessibility to data insights. Back then, it took a long time to get results from the system, but simply having access was a novelty. Expectations are vastly different today. [Siemens](https://www.pulse.cloud/features) has empowered its customers through technology to transform the everyday since 1847. Siemens purchased dashboarding software 15 years ago to create embedded dashboards, integrating it into the platform. Over time, Siemens realized it wanted to have dashboards outside of this platform, independent of any use case. The company built its Siemens Pulse Analytics platform as an internal Siemens service in response to concrete problems, specific inquiries, individual use cases, and a lack of offers on the market. This has resulted in widely-applicable solutions that enable virtually any company to fully exploit the potential of its data. "We realized through the projects we were doing that we needed surrounding processes around the reporting. What we offer with the Pulse platform is the entire end-to-end process for reporting analytics with surveys included, because we have a long history of running internal and external surveys here at Siemens,” said [Christoph Malassa](https://www.linkedin.com/in/christoph-malassa-a4462188/), Head of Data and AI Platforms, Siemens. *Christoph Malassa,**Head of Data and AI Platforms,**Siemens* ## Challenges/GoalsDashboarding needs to be tailored and flexible at the same time to bring together data from different sources into reports. Once this transparency is available on the dashboard, the question becomes: what do you do with it? How do you make data actionable. ### Pulse was capable, but SQL Server made it painfully slow Pulse offered capabilities for internal and external projects to make data actionable, but the system, based on Microsoft SQL Server, fell short when it came to performance. Customers were unable to harness the full value of their data because they were frustrated by slow response times that didn’t meet modern requirements. Malassa explained, “Everything we wanted to do, we could do, but it was painfully slow. Integrating data took a half hour. If you’re a business person, you would approve a data flow and then wait for 30 minutes for this information to appear in the staging area. Then you needed to make a decision to move to production.” “The waiting times were longer than two seconds. If it's not instant or very close to instant, it becomes painful. At that point, people just don’t do the analytics and valuable information is lost. If you don't use it, and if you don't analyze, you can’t find these things, you're not going to improve your business.” Christoph Malassa Head of Data and AI Platforms, Siemens ### If you don't analyze, you don’t improve your business Siemens previously had to run advanced analytics offline using IBM SPSS. “Even when everything was done, if you looked at the dashboard and wanted to drill through, the waiting times were longer than two seconds. If it's not instant or very close to instant, it becomes painful. At that point, people just don’t do the analytics and valuable information is lost. If you don't use it, and if you don't analyze, you can’t find these things, you're not going to improve your business.” ## Technology Requirements Fast, real-time dashboards were a necessity for Pulse to live up to its potential. Siemens’ primary business goals included: Running the platform in the cloud. Improving and increasing it from a capability perspective. Helping customers answer their questions using data with any existing business intelligence tools. Siemens Pulse needed super fast queries and analytics to support these business goals, and their initial database technology choice, Microsoft SQL Server, was not able to deliver on these requirements. Since the company offers professional services to its customers, every project is different. The data sources could be almost anything, from databases to IoT devices. “For this to work, we have to have a fantastic database so that anything we do is quick. You want dashboards to be instant instead of waiting five seconds if you change a filter.” Christoph Malassa Head of Data and AI Platforms, Siemens ## “If it exists somewhere, it can be a data source. We help customers answer the questions using the data, or other data sources that we can connect to. For this to work, we have to have a fantastic database so that anything we do is quick. You want dashboards to be instant instead of waiting five seconds if you change a filter,” said Malassa. ## Why SingleStore“We gradually became more and more unhappy with our platform’s performance. In the early days the expectations of our customers were pretty low, because the whole concept of dashboarding was so new. But then the amount of data grew because we kept the history and were adding data every day. So the dashboards became slower and users became less happy,” Malassa explained. “Once we found SingleStore, there really wasn’t a reason to look at anything else. We said, ‘Okay, this is awesome. We need this'.” Christoph Malassa Head of Data and AI Platforms, Siemens ## Siemens evaluated other database options as managed instances in AWS, including MySQL and PostgreSQL, but found both were not well-suited for analytics due to a lack of columnstore.Faced with its growing dilemma and in Malassa’s words, “fed up” with SQL Server, Siemens Googled for an answer. “We Googled, ‘what's the fastest relational database analytics’? That’s how we found SingleStore. And that's exactly what we needed to run super-fast analytics,” said Malassa.“Once we found SingleStore, there really wasn’t a reason to look at anything else. We got the trial version on Thursday and the buying decision was done by Tuesday, because we had huge improvements before we even really understood how tuning worked,” said Malassa. “We said, ‘Okay, this is awesome. We need this'." ## Solution: SingleStore’s auto-scaling analytical database on AWSSiemens Pulse Analytics is now a hybrid containerized app combining SingleStore, Kubernetes, and AWS. Malassa and team store all data on SingleStore and upload it to AWS S3 so Siemens and its customers can run analytics and machine learning operations. “Analytics and all the processes surrounding analytics, such as data preparation, machine learning results, action creation, and anything we report on that users interact with, lives in SingleStore. The system loads data into AWS S3 with the help of SingleStore’s Bottomless Storage, which separates storage and compute,” said Malassa. “And SingleStore is an auto-scaling analytical database. That is HUGE. You don’t see that.”The foundation of the system is a one SingleStore cluster configuration on a single large machine with 96 cores processing millions or billions of rows of data that it scales vertically as required. “SingleStore is an auto-scaling analytical database. That is HUGE. You don’t see that.” Christoph Malassa Head of Data and AI Platforms, Siemens ## Malassa explained, “We originally had four servers across two availability zones, but found that the simplest setup is best for us. With everything on one machine, we gain the best performance because we don’t have network traffic. Our main priority is when we do ingest data we must recalculate the entire dataset because business rules change over time. We also have strict data preparation standards, and reporting must be quick. This all means we must be able to query billions of rows and get results back in less than 100 milliseconds.” Siemens Pulse Analytics supports upwards of 100 projects. On any given day it is supporting from tens to hundreds to thousands of concurrent users, but since many projects report monthly or quarterly, and Siemens itself has massive projects that run several times per year. “System usage can be super spiky, ranging from 500 to 100,000 users per day, and SingleStore scales linearly to support this,” said Malassa. “System usage can be super spiky, anywhere from 500 to 100,000 users per day, and SingleStore scales linearly to support this.” Christoph Malassa Head of Data and AI Platforms, Siemens ## Siemens can now do things such as instantly translating text right on the database through HTTP User-Defined Functions in SingleStore. This allows SingleStore to talk to APIs to bounce data from within the database to machine learning functions, supporting capabilities such as translations instead of having to offload it somewhere else. ## Solution: SingleStore’s vector capabilities on AWSAs noted above, with its previous data infrastructure based on SQL Server, integrating data took a half hour, forcing business teams to approve a data flow and then wait for 30 minutes for the insights they needed. Yet, the challenges went further than that.Siemens has a treasure trove of potential analytical insights: its vast collection of feedback data sources includes company-wide HR surveys across its 200,000+ employees worldwide. The limitations of SQL Server, however, meant that users were restricted to searching for exact text-based search terms to extract insights from all of that data.By creating vector embeddings of the text feedback and storing the resulting embeddings in SingleStore, Siemens and its customers can now perform semantic search and sentiment analysis to gain deeper insights into employee satisfaction, company culture, and retention. “With Siemens Pulse Analytics, our customers can now drill down into things like NPS to get at the root cause of a score, drive insights back into the business, improve their scores, and most importantly, retain their end customers.” Christoph Malassa Head of Data and AI Platforms, Siemens ## SingleStore’s extensive vector data capabilities also include integrations or plugins for popular tools such as OpenAI, Hugging Face, LangChain, Google Vertex AI, and LlamaIndex, making it easy to get started quickly.Deploying SingleStore was user-friendly for Malassa and team. “I'm not a Linux administrator, and I was able to deploy SingleStore on my own. It’s pretty straightforward, and when you have questions, support is super helpful,” he said. ## Outcomes “With Singlestore, we no longer look at the database as a limiting factor in our business,” said Malassa. As a result of choosing SingleStore, Siemens is experiencing a range of advantages that are helping the company and its customers improve their businesses: ### Real-time data drives advanced analytics to make smart decisions at the speed of business “Transaction data works in many databases, but when it comes to analytics, most databases don’t perform at all,” said Malassa. SingleStore’s powerful real-time analytic capabilities accelerate time to insight to help Siemens and its customers make better business decisions faster. Before SingleStore, Siemens Pulse had limited capabilities due to how painfully slow the system was. With SingleStore, users can now slice and dice the data in real time to determine how valid a correlation is. They can also connect reporting lines in endless useful combinations, with automatic deduplication. “They get high-quality analytics that they can run in real time, and not just aggregations, but statistical analysis as well. It’s all the advantages you get from a really great analytics and reporting platform,” said Malassa. ### Siemens Pulse Analytics helps even the largest organizations transform complexity into operational excellence By choosing SingleStore, Siemens was able to meet challenging data requirements while making the system user-friendly for business users. The complexity of the platform is abstracted away and the underlying data sources are handled in the background so its customers can focus on the benefits associated with its two unique selling propositions (USPs): - ***Optimize their businesses by cross-matching survey results at team and individual levels.*** Large organizations quickly encounter data complexity as they support cross-functions such as IT and HR, each of which may have organizational trees 10-12 levels deep and additional dotted-line reporting across multiple teams. With Siemens Pulse Analytics, however, organizations are transforming complexity into operational excellence. “This complexity also means an endless amount of useful combinations for our customers to study as they work to optimize their businesses,” said Malassa. “For example, if they do a survey and want to see results where IT and anyone on any other team in a division are in scope, now they can deduplicate results on the fly and show all applicable data — and only the applicable data, and each insight only once — to each user.” - ***Take it to the next level by validating data correlations.*** Another example of the value Siemens Pulse Analytics delivers is when organizations generate NPS scoring by surveying their customers. ‘On a scale of 1 to 10, how likely are you to recommend our company to others’ is useful, but it does nothing to identify and quantify the underlying factors that contributed to the customer’s assessment. “For example,” explained Malassa, “what impact did various dimensions, such as product quality, support, cost, and more have on their score — and on which dimension do they give your organization the lowest score? With Siemens Pulse Analytics, our customers can now drill down into things like NPS to get at the root cause of a score, drive those insights back into the business, improve their scores, and most importantly, retain their end customers.” In the past, Pulse had to provide these analytic insights by moving data into IBM SPSS, which as noted earlier, was painfully slow. With SingleStore as the underlying data foundation, Siemens and its customers can now slice and dice data in real time, and in the NPS example, instantly understand the validity of a data correlation. With Siemens Pulse Analytics, our customers can now drill down into things like Net Promoter Score (NPS) to get at the root cause of a score, drive those insights back into the business, improve their scores, and most importantly, retain their end customers.” “The ability to have data in AWS S3 and have multiple SingleStore instances accessing that same data means we can quickly scale up more clusters while gaining a HUGE improvement in AWS costs.” Christoph Malassa Head of Data and AI Platforms, Siemens ### Querying billions of rows and petabytes of data in real time to accelerate time to insight Siemens had strict query result requirements to achieve its goal of real-time reporting. For Pulse, instant results meant responses under 250 milliseconds. The database must execute in 100 milliseconds or less to meet this requirement, and SingleStore’s ultra-fast performance meets the challenge across hundreds of terabytes or petabytes of data. ### Instant text translation and machine learning functions right on the database Siemens can now instantly translate text right on the database through HTTP User-Defined Functions in SingleStore, which allows APIs to bounce data from within the database to machine learning functions in S3 and support capabilities such as translations. ### Ability to have SingleStore instances access the same S3 data delivers huge cost-savings “The ability to have data in AWS S3 and have multiple SingleStore instances accessing that same data means we can quickly scale up more clusters while gaining a HUGE improvement in AWS costs,” said Malassa. ### Siemens is delivering greatly improved customer experiences with SingleStore “Having a database that makes it possible for dashboards to be instant is huge. It's something that you always wish for. It should be the norm, but it wasn't, at least for us, before we had SingleStore. Everything is still possible, but significantly faster. Data processes run faster. Access to reports is much faster. The whole user experience is just greatly improved.” ### Elastic scalability accommodates spiky concurrency and future growth The ability of SingleStore to auto-scale to accommodate massive usage spikes on the fly enables Siemens to support from as few as 500 to as many as 100,000  concurrent users. Siemens can confidently support its existing customer base and scale as its Siemens Pulse Analytics business grows. *Christoph Malassa co-authored this insightful blog post with SingleStore’s Eric Hanson and Pranav Aurora:*[AI-Powered Semantic Search in SingleStore](https://www.singlestore.com/blog/ai-powered-semantic-search-in-singlestoredb-/) ***SingleStore is helping companies compete and win across many verticals.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/spacetime-io/ # spacetime.io Empowers Investors with Instant Insights to Yield Top Performance on 26.5B Trades per Year with SingleStore spacetime.io is using SingleStore to power its TradeFabric.ai platform, which delivers real-time analytics for institutional traders to enhance equity trading performance. # spacetime.io Empowers Investors with Instant Insights to Yield Top Performance on 26.5B Trades per Year with SingleStore on AWS “When you’re talking about a database containing more than 175 billion rows, being able to query a database of that size and pulling responses out in two seconds is very good. Lookup data is nearly instantaneous, which allows us to avoid adding a cached memory product such as Redis.” Colin Hall Co-Founder and Director of Engineering, spacetime.io 10s to 100s of millions of measurements per day 10-100M Supports 146 billion quotes and 26.5 billion trades per year 146B + 26.5B SingleStore is delivering 100% Uptime SingleStore data compression is reducing storage by 80% -80% Today’s equity trading systems struggle to keep pace with both the sheer volume of trading activity and complexity. Managers and traders face tremendous information overload and a loss of situational awareness as they deal with disparate systems and legacy technology stacks that make it difficult to keep up with the pace of the markets. This increases cost and more importantly, increases the risk of poor trading decisions, massive market losses, securities compliance violations, and fines. [spacetime.io](https://www.spacetime.io/) saw the opportunity to disrupt institutional trading systems and drive massive change in capital markets by focusing on reengineering trading workflows with an API and cloud-first engineering approach. spacetime’s trade analytics and recommendation platform, [TradeFabric.ai](https://www.spacetime.io/tradefabric-ai/), supports its diversified user base including: - Institutional traders on the trading floor - Trade execution committees - Investment bankers - Pension funds - Family offices - High-net-worth individuals The platform focuses on equities and supports cryptocurrency trading. “The ultimate question we want to answer for users is: did you get proper execution of your trading flow or not? By generating these analytics, what we’re doing is benchmarking their performance against how the market performed during the same timeframe, trading the same kinds of securities in the same region,” said [Colin Hall](https://www.linkedin.com/in/colinhall1999/), Co-Founder and Director of Engineering, spacetime.io. ## Challenges/Goals TradeFabric.ai combines intuitive design, real-time analytics, visualization, and machine learning on a secure, scalable, modern architecture. On an annual basis, the platform processes:146 billion quotes 26.5 billion trades3 billion foreign exchange rates9.5 billion market snapshotsNorth American equities trading is concentrated around the opening and closing bells. Peak periods are weekdays from 9:30-10:00am and 3:30-4:00pm Eastern Time; approximately 80% of TradeFabric.ai’s traffic occurs during these timeframes. The platform ingests 100,000 files per day from Amazon S3 buckets. That kind of workload requires ingesting and managing a massive amount of data. “If their trades are not performing well, it may not be because a broker is performing poorly. It is often a function of the freshness of the data, the speed limitations of the system, and their trading algorithm. We can help them make beneficial adjustments to all of these things.” Colin Hall Co-Founder and Director of Engineering, spacetime.io ## TradeFabric.ai includes many capabilities to deliver critical trading insights to its users as close to real-time as possible, allowing them to act on crucial insights while a trade is still being executed. “Trading happens with the users’ own providers, and we are analyzing trades they’re making with the market data afterward. If their trades are not performing well, it may not be because a broker is performing poorly,” said Hall. “It is often a function of the freshness of the data, the speed limitations of the system, and their trading algorithm. We can help them make beneficial adjustments to all of these things.” ### Investment success requires a range of data from historical through real-time TradeFabric.ai’s reports address performance on a historical, recent, and “right now''/real-time basis, giving traders the flexibility they need for in-depth scheduled and ad hoc analyses. Data pipelines continually bring in real-time market data from the North American equity market and Forex, along with the customer-supplied order information. These analytics are resource-intensive, and meeting the requirements of each report required a sophisticated database underneath the platform. #### Mark-to-market pricing and real-time decisions The foundation of any financial exchange is mark-to-market (MTM) pricing: the current market value of any investment, in real time, rather than book value. Any financial exchange that cannot deliver MTM every millisecond of every day can subject itself and all who trade on the exchange to financial losses fast. “When people are interacting with our sites, we want the interactions to be as near-real-time as possible. So the database has to be real-time.” Colin Hall Co-Founder and Director of Engineering, spacetime.io ## “TradeFabric.ai has two main sets of requirements. One is for information that we’re getting in real time via market and order data. We need to be able to analyze that data in real time, too, and provide analytics to clients at that speed,” said Hall. “For more historical data, we need to be able to work with it in a way that’s performant with reasonable speeds and costs,” said Hall.spacetime.io needed to ensure that order and client data is ingested in real time, because otherwise, mark-to-market trades could be in violation of strict regulations. TradeFabric.ai users could fail audits or face significant fines. Without real-time capabilities, users would also incur opportunity costs, such as paying too much for securities or selling too low. “When people are interacting with our sites, we want the interactions to be as real-time as possible. So the database has to be real-time,” said Hall. ## Technology Requirements The data and speed requirements TradeFabric.ai’s reports vary:Historical reports reveal how brokers and their trading strategies do over time, ranging from one fiscal quarter to two years. The system needs to accommodate 10,000+ client orders and millions of order fills, with a configurable timeframe that’s evaluated on-demand.Recent reports look at the past few days of trading performance, from one day to one week. The system needs to be able to handle the tens of thousands of orders and 50+ benchmarks per order assessed against market performance, that occur in that timeframe. “Right Now'' reports provide real-time analytics showing how orders are doing in a snapshot of time. Market data is used immediately as it’s ingested and stored in the database, and an order may be re-evaluated multiple times within a minute. Traders need this data to be available “right now” to optimize their performance on every trade. *Example of a Recent report in spacetime.io’s TradeFabric.ai* As a platform built with a scalable, modern architecture in mind, support for the cloud was a must, but not every TradeFabric.ai user can work in the cloud. Some have on-premises support requirements, so the underlying database infrastructure of TradeFabric.ai also needs to offer this flexibility. Other essential elements for spacetime.included being able to easily add nodes and scale the architecture, and the ability to pull in historical market data, reprocess orders, and look at specific segments, all of which must load within seconds. ## Why SingleStore As a startup company, spacetime.io was starting from scratch when it came to the database selection for TradeFabric.ai, so the team considered a range of options, including SQL Server and MySQL. The company has relationships at these other database providers and emphasized that each of the competing databases is good in its own right. SQL Server was unable to ingest data fast enough to meet spacetime.io’s needs, and spacetime.io also could not swallow the cost. “I’m a born-and-bred SQL Server guy,” explained Hall, “but when we looked at the on-premises version of the database software, it gets more expensive as nodes are added. It was also complex because we didn’t have Microsoft Active Directory in our environment.” spacetime.io looked at a hosted version of SQL Server and found that while it could spin up that database very quickly, it was complicated to time and execute against. “It wasn't that the other databases were so ineffective at what they were doing, it was that SingleStore was the best product for our needs. Kudos to SingleStore for winning out in a competitive field.” Colin Hall Co-Founder and Director of Engineering, spacetime.io Hall has also worked in MySQL, so that was the next database up for consideration. However, the lack of support in what is inherently an open source product, where support is left to the community in most cases, was a concern. Other databases lacked an on-premises deployment option and offered limited personal support from the providers. “That’s when we came across SingleStore,” said Hall. “We did a thorough evaluation and it wasn't that the other databases were so ineffective at what they were doing, it was that SingleStore was the best product for our needs. Kudos to SingleStore for winning out in a competitive field.” “We have a unified database environment with SingleStore because we can install it locally, use the managed service, and host it ourselves. The coding environment doesn’t change as we go from platform to platform. If a client has a requirement to install it on-premises, we can facilitate that,” he explained. “You couldn’t effectively do that with a database provider that only offers a cloud solution.” Primary reasons spacetime.io chose SingleStore to power real-time and historical trade analyses included: - Performant database: SingleStore has in-memory tables for the data that needs to be cached with fast access times, along with sorted compressed data storage for market data. - Flexible deployment models: the database engine can be easily deployed in the cloud, as a managed service offering, and on-premises. - Extensible architecture: SingleStore provides simple, incremental scaling as needs grow. - Built-in data ingestion: native ingestion capabilities are available via SingleStore pipelines. spacetime.io did not need to set up third-party tools or services to ingest data into TradeFabric.ai. - Reliable support: SingleStore offers strong commercial support as well as community options, with advanced administration training choices available and open communication with the engineering team and database specialists. spacetime.io is also using SQL Server as a smaller footprint in an area of its data infrastructure that is more natively suited for its needs. “We have a unified database environment with SingleStore because we can install it locally, use the managed service, and host it ourselves. The coding environment doesn’t change as we go from platform to platform. If a client has a requirement to install it on-premises, we can facilitate that. You couldn’t effectively do that with a database provider that only offers a cloud solution.” Colin Hall Co-Founder and Director of Engineering, spacetime.io ## Solution spacetime.io began by using [SingleStore Self-Managed](https://www.singlestore.com/product-overview/) on AWS with a MariaDB connector to ingest 100+ TB of market and order data annually and compress it down to 16 TB in columnstore. spacetime.io uses SingleStore as its core data platform for data management, including transactions (OLTP) and analytics (OLAP). This powers TradeFabric.ai by using Amazon S3 combined with SingleStore [Pipelines](https://www.singlestore.com/blog/pipelines/) to pull in real-time market data. Data in the columnstore uses in-memory and caching, while rowstore is entirely in-memory. “Being able to use SingleStore Pipelines instead of a third-party ingestion application was appealing. We didn’t have to set up a Kafka bus. We set up an Amazon S3 bucket and pipelines to ingest the data, with no software in between,” said Hall. “Less software equals fewer problems.” “With SingleStore, the ability to add nodes and be able to scale the architecture up and down almost on demand was very appealing. We can conserve costs, hardware, and even credits if we’re on the managed service.” Colin Hall Co-Founder and Director of Engineering, spacetime.io Amazon S3 is also used as part of TradeFabric.ai’s recovery model. “Since all the data is in Amazon S3, theoretically, if the database blew up, we could reingest the data in the S3 buckets if we really needed to,” said Hall. spacetime.io still does use a few small SQL Server instances alongside SingleStore for tenant and user configuration, and API management. spacetime.io had a year’s worth of market data to incorporate into TradeFabric.ai to start. It relied on SingleStore’s scalability to ramp nodes up and down to accommodate this batch ingestion process in a timely manner. Initially, the process was estimated to take five days, but scaling from four nodes up to 16 reduced it to just one day. After testing and finding an additional 10-15% performance improvement, spacetime.io moved to [SingleStore Helios](https://www.singlestore.com/product-overview/). “The ability to add nodes and be able to scale the architecture up and down almost on demand was very appealing. We can conserve costs, hardware, and even credits if we’re on the managed service,” explained Hall. ## Outcomes A growing number of large institutions use TradeFabric.ai concurrently, and its SingleStore-powered architecture can support massive concurrency as spacetime.io’s user base grows: ### Real-time insights drive top broker performance spacetime.io improves time-to-insight for traders using TradeFabric.ai, allowing them to make informed business decisions in the moment. Ingestion is near-real-time, bringing in 750 million rows every day, with data imported into SingleStore almost simultaneously as it is written to Amazon S3. spacetime.io’s SingleStore-powered TradeFabric.ai platform empowers traders by drilling down into individual orders, aggregating orders, creating report cards, and generating other data visualizations that answer the question of whether they’re getting good prices on their trades and executing compliantly. For market data stored in columnstore tables and used for order benchmarking, queries return responses in less than two seconds. “When you’re talking about a database containing more than 175 billion rows, being able to query a database of that size and pulling responses out in two seconds is very good,” Hall said. “Lookup data is nearly instantaneous, which allows us to avoid adding a cached memory product such as Redis.” For computed analytics, such as millions of orders stored in-memory in rowstore, TradeFabric.ai has sub-second retrieval times. Cached market data comes in under three seconds, and historical analysis on large data sets takes just 5-10 seconds. #### SingleStore is delivering 100% uptime “We actually have 100% uptime in our database environment with SingleStore,” said Hall. Having a database that’s available to you and reliably ingests the data when you need it is essential when you do a lot of analytics,” said Hall. #### SingleStore 80% compression reduces 100+TB storage to 16TB SingleStore’s compression enables spacetime.io to massively reduce its storage needs for market and order data from 100+TB uncompressed data to 16TB. By controlling the storage size for these large databases, the company can scale cost-effectively without needing to compromise on the amount of data used by TradeFabric.ai for historical and real-time analytics. #### “Compressing” overnight analysis to near-real-time optimizes trader experience “Traders are used to overnight analysis and we’re offering something that’s actually near-real-time,” said Hall. “For most queries, the pages come up within a few seconds. If traders had to wait 30-40 seconds for a promised real-time experience, they would use something else.” ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/stream-hatchet/ # Real-Time eSports Analytics Helps Stream Hatchet Customers Optimize Partnerships and Audiences How 10X faster query performance + 2X faster report generation = better partnerships + expanded audience reach for Stream Hatchet's eSports customers # Real-Time eSports Analytics with SingleStore on AWS Helps Stream Hatchet Customers Optimize Partnerships and Audiences “Before SingleStore, we had to look at our data from the surface because our back end didn’t allow us to go deeper. Now we can crunch the data in different ways in real time that allow our users to extract insights they couldn’t see before.” Albert Alemany Chief Technology Officer, Stream Hatchet Faster query performance 10x Faster report generation 2x The video game live streaming and eSports market has grown rapidly over the past few years, with 50 million global eSports viewers, 2.7 billion gamers worldwide, and tens of billions of hours of streaming content watched. This market offers many opportunities for savvy game publishers and brands to reach their target audiences with non-traditional approaches such as sponsoring eSports competitions. A lack of reliable eSports and live stream data, however, made it difficult to make the right decisions. ## Challenges/Goals [Stream Hatchet](https://streamhatchet.com/) was founded to fill this analytic gap in the market. Its goals were to: - Help companies analyze eSports data so they can understand how they’re doing and ways they can optimize time and resources - Become an industry-trusted source for audience analytics at the top events in eSports - Offer real-time and historical live streaming data to analyze trends and performance across all genres, games, events, and channels ## Technology Requirements Stream Hatchet's customers are the biggest companies in the eSports industry: game publishers, eSports organizers, and other brands. [Albert Alemany](https://www.linkedin.com/in/albertalemanyfont/), Co-Founder and CTO, and the Stream Hatchet team needed a database solution capable of working with thousands of time series data points in complex multi-gigabyte aggregated queries. Analytics speed was the top priority for the platform, as queries were taking more than a minute. Both real-time and historical data were needed to provide the full context of the live streams and eSports events. The data ingestion pipeline included manual metadata input, third-party fact tables, and automated systems. Ideally, all this data would live in the same datastore to reduce infrastructure complexity and improve performance. The database had to support SQL so Stream Hatchet wouldn't need to rewrite the entire backend or APIs. It also needed to support real-time and time series analytics with ultra-fast performance. *Albert Alemany, Co-Founder and CTO, Stream Hatchet* ## Why SingleStore/Solution Stream Hatchet experimented with many database technologies and found that SingleStore Helios exceeded its technology requirements. This cloud database as a service delivered the real-time query speed Stream Hatchet wanted while eliminating the need for multiple purpose-built databases to support its required functionality. Stream Hatchet migrated all of its eSports data to SingleStore Helios. With SQL Wire compliance, it only took two months to bring this solution fully into production. With this unified database designed for fast analytics on any data set, anywhere, customers can now get real-time insights on eSports data to inform their decision-making. ## Outcomes “Before SingleStore, we had to look at our data from the surface because our back end didn’t allow us to go deeper. Now we can crunch the data in different ways in real time that allow our users to extract insights and see things they couldn’t see before," said Alemany. ### 10x Faster Query Performance + 2x Faster Report Generation = Better Partnerships + Expanded Audience Reach With SingleStore, Stream Hatchet customers are now enjoying 10X faster query performance and generating reports twice as fast as before. Data science teams now have increased visibility into their data, leading to greater speed and agility. They’re able to optimize league performance, make better influencer partnerships, explore macro trends in live streaming, and expand their audience reach. #### Real-Time Analytics with Minute-by-Minute Granularity With SingleStore, Stream Hatchet now builds minute-by-minute granularity into its eSports data. Customers can drill down into this information to see what specific channels are doing at specific times and view trends in context to understand spikes in viewership. This time series data is processed quickly and efficiently, eliminating any delay that stands between brands and critical esports insights. #### Powering Multiple Business Units for <$400/month Now that Stream Hatchet has its eSports use case fully in production and meeting performance requirements, the team wants to expand SingleStore Helios usage to other lines of business. This cloud-native database solution is built for seamless scaling and ultra-fast analytics, so it’s a powerful foundation to build upon. #### Simplified its Infrastructure with a Unified Database Stream Hatchet relied on multiple purpose-built databases and related services for its eSports analytics before adopting SingleStore Helios. The complex infrastructure cost the team significant time and resources in maintaining these systems. With SingleStore, Stream Hatchet can focus on iterating its platform and exploring new ways to serve its customers. ***SingleStore is helping companies compete and win across all verticals.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/thorn/ # Thorn: The Real-Time Fight to Defend Children From Sexual Abuse The internet is an endless source of information. There are over 127 million websites available to anyone with a computer or mobile device, and the spread of information happens instantly. # The Real-Time Fight to Defend Children From Sexual Abuse The internet is an endless source of information. There are over 127 million websites available to anyone with a computer or mobile device, and the spread of information happens instantly. Yet for all the good, helpful data the internet provides, there’s also a dark side to it. And as digital technologies proliferate and continue to evolve, so have these dark corners of the web — targeting the most vulnerable members of our society: children. Ashton Kutcher learned about child sex trafficking from a documentary highlighting what was happening to children in Cambodia. Yet as he started to research the issue more, he realized it’s as much of a problem in the United States as it is overseas. Inspired to take on the issue and encouraged by his investments in technology, Kutcher co-founded Thorn with a steadfast mission: to build technology to defend children from sexual abuse. Children victims identified by Thorn 27,000+ Agencies using Thorn 3,200+ Reduction in investigation time in 2022 53% ## A real-time, AI-based response to a growing epidemic As Thorn gained momentum, a common thread emerged among professionals working in the field: The response to this epidemic has to be equal to that of its epicenter — one that harnesses the power of data to take the fight directly to traffickers and distributed materials. Technology has played a significant role in extending the crime, but it’s time it plays an even more significant part in its solution. With this focus on technology to combat child sexual abuse, a new sphere emerged: mobilizing real-time technology to accelerate victim identification, equipping platforms and empowering parents and the public. Driven by equal parts technological expertise and passion, Thorn needed a partner that understood real time means right now — even two seconds is too late. Together, SingleStore and Thorn have accelerated the image recognition workflow used to find victims of abuse and sexual exploitation. In the early days of Thorn, matching vectors required extensive pre-processing via a custom solution — something that took too long, and only delayed victim identification. By partnering and building more features with SingleStore, new vectors can be inserted and queried in real time. The result? Faster response times for law enforcement to act, and more children saved every day. ### Thorn+SingleStore: Building a safe future for children around the world In a constantly shifting digital environment, Thorn needs to keep their technology agile, tapping into the power of modern, real-time data to equip law enforcement and ensure children are quickly identified and saved. As data becomes more ubiquitous and available, so does Thorn’s effectiveness. By using fast, scalable and unified technology made on SingleStore for over a decade, Thorn assists law enforcement in identifying and defending children from sexual abuse — and to this day, continues to develop and deploy smart tools that combat harmful materials. “I saw these extraordinary companies being built through utilization of the efficiency of technology. And I thought, ‘it would be very interesting to try and build a philanthropic initiative to solve this problem using all the things we’ve learned through scaling software companies.” Ashton Kutcher Co-Founder, Thorn, on Forbes podcast with Raj Verma, CEO, SingleStore ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/tier1bank/ # America-based Tier 1 Bank Repositions Itself as a Financial Services Innovator with SingleStore, Saving $40M/Year How a major America-based bank is using SingleStore to rapidly develop new customer-facing applications and save nearly $40 million/year to free up more IT budget for innovation. # America-based Tier 1 Bank Repositions Itself as a Financial Services Innovator with SingleStore, Saving $40M/Year In annual cost savings with SingleStore $40M Millisecond response times on 125 million queries/day 1ms on 125M If there’s one industry undergoing constant tech innovation, it’s financial services. Whether moving from pure-play transactional systems to omnichannel systems of engagement or AI-ready customer solutions, success in financial services requires not just faster systems but a fundamentally different data architecture natively engineered to handle real-time operations. A Tier 1 US-based bank—if you were making a list of the World's Largest Banks, this bank is one of the Biggest Of All—was facing serious competitive and technical challenges. The bank needed to modernize its platform and infrastructure from mainframes to modern scalable data engines to effectively meet its customers at every touchpoint and roll out products and services faster. ## Challenges/Goals The bank’s existing infrastructure, including Oracle RAC for OLAP and a leading mainframe for OLTP, could not support its massive customer base. The company  continued to add more and more compute power and instances to meet its concurrency and latency requirements. One of these providers charges by MIPS (millions of instructions per second), and with the bank’s mainframes running at or near capacity, operating costs continued to increase month over month — resulting in an annual IT budget in the billions of dollars with no money left for innovation. This put market share at risk; while the bank was carrying this heavy financial and operational burden, competitors were developing new products and services it could not compete with through innovation. The bank’s data braintrust knew legacy modernization of its data estate would overcome its biggest challenges, including: - Potential market share and revenue losses across its customer base - Devoting nearly all of its budget maintaining current operations, sapping funds that could be driving innovation - Inability to keep pace with competitive omnichannel apps spanning a full range of financial services ## Technology Requirements While its largest competitors made big investments in technology transformation, this bank was still relying significantly on legacy mainframes and ongoing maintenance projects, impeding its ability to become iterative and agile. And, it could not move to an industry-standard ‘systems of engagement’ model. The bank needed to offload 30% of its mainframe usage to a customer data hub. The ideal solution needed to be cost-efficient, highly scalable and agile — and position the financial institution as a competitive innovator. ## Why SingleStore This bank selected [SingleStore Helios®](https://www.singlestore.com/product-overview/), a real-time data platform built for speed, scale and simplicity to deliver a modern architecture for robust omnichannel systems of engagement. It offers parallel, high-scale streaming data ingestion of up to millions of events per second that can be processed for immediate availability. 
 “SingleStore delivers blazing fast queries that deliver single-digit millisecond latencies with immediate consistency and high concurrency to handle millions of real-time queries across tens of thousands of users,” said our customer champion/advocate. ***“SingleStore delivers blazing fast queries that deliver single-digit millisecond latencies with immediate consistency and high concurrency to handle millions of real-time queries across tens of thousands of users.”*** ## Solution Our customer had the vision to execute a strategic mainframe offloading initiative, moving data storage and processing from the mainframe to a more cost-effective and efficient solution: SingleStore. The company easily migrated stored procedures from the mainframe to SingleStore, whose drop-in compatibility with industry-standard SQL wire protocol support made it simple to get started. SQL experts are readily available, removing many development roadblocks that impact time to market. All of these capabilities added up to a platform poised to keep up with the changing requirements of today’s financial services customers. “Using SingleStore as our system of engagement now enables us to offer consistent and personalized omnichannel recommendations to customers regardless of when, where, and how they choose to interact with us,” said our Customer Champion/Advocate. The bank’s systems can now manage complex caching in RDB format, achieve high concurrency with millisecond response times on 125 million queries per day and use native CDC into SingleStore to stream events directly into the database — where they are immediately available to support queries. ## Outcomes By banking on SingleStore’s speed, scale and simplicity, this financial services leader has modernized and optimized experiences for its customers with an omnichannel system of access. ### *Saving $40 Million Annually, Freeing Up More IT Budget for Innovation* Shifting 30% of its mainframe traffic to SingleStore has resulted in $40 million annual cost savings for our customer. The move helped both financially and strategically: instead of these funds going to maintain and cope with an aging data infrastructure, this financial innovator can now redeploy these funds to build differentiating, value-adding services and to create and deliver innovative customer experiences — all of which enhances revenue retention and positions the company for the future. ### *Rapidly Developing New Customer-Facing Applications* SingleStore helps this bank’s development sprint teams reduce time-to-market for new customer applications by using familiar SQL to accelerate the cadence of releases. The bank can now better meet customer expectations through modern omnichannel banking solutions to compete effectively with other large, established banking organizations as well as fintech innovators and emerging digital-first challenger banks. ### *Increasing Competitiveness = Increased Revenue* Our customer leveraged SingleStore’s speed and scale to accelerate its creation of modern solutions that enable it to effectively respond to ever-changing customer needs. By delivering on customer expectations through enhanced omnichannel experiences, it has also realized incremental revenue growth. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/top10csp/ # Top 10 Communications Service Provider Accelerates its Journey to 5G by Replacing Oracle Exadata with SingleStore One of the world’s top 10 CSPs replaced Oracle Exadata with SingleStore, achieving 18,000 KPIs, gaining 6-100X faster queries, and reaping $5.4 million in annual savings. # Top 10 Communications Service Provider Accelerates its Journey to 5G by Replacing Oracle Exadata with SingleStore This CSP is reaping $5.4 million in annual savings with SingleStore $5.4M Faster query performance 6-100x Achieved 18,000 KPIs 18k Supporting 140+ million subscribers 140+M One of the world’s top 10 communications service providers (CSPs) delivers digital services to its more than 140 million customers via its reliable network and the latest technology. For every CSP, the network is the biggest asset and differentiator: the quality, health, and well-being of the network directly impact service quality, customer churn, revenue growth, and employee compensation. So the company’s ability to instantly monitor and resolve any issues in the network is paramount. ## Challenges/Goals Ensuring network health and uptime is a challenge that has grown exponentially with the company’s 5G rollout, which has increased data volumes by up to 20x. Since this CSP was already struggling to deal with data volumes associated with 4G service, the question was, what was its game plan for 5G? ### Technical Issues The customer’s previous data management solution for ingesting and processing 4G and all data-related services was based on Oracle Real Application Clusters (RAC) on Exadata. The legacy architecture, shown in the image that follows, was never designed to address the incredible growth and complexity of today’s data-driven world, and this posed enormous challenges: - The explosion of smart and connected devices has already outpaced its existing data capabilities, and 5G is expected to increase data volumes by 20x. Oracle RAC on Exadata does not scale well, was extremely costly, and could not keep up. - The customer needed immediate event-to-insights to respond to changing conditions and requirements, and Oracle’s analytical reporting performance was extremely slow, with data refresh every 1-17 minutes. - Oracle’s limitations imposed a high degree of complexity and maintenance overhead. DDL on partitions is a serial operation and the majority of the time in this area was spent on partition maintenance. - The legacy architecture provided limited integration capabilities with modern data sources such as Kafka and S3, which are essential to enabling a simpler, more scalable and flexible architecture, or with new AI and machine learning capabilities to support predictive analytics. - The CSP was unable to take advantage of the flexibility of the Cloud. *Top 10 CSP’s existing architecture before SingleStore* ### Business Impacts These complexities and architectural challenges were preventing the CSP from gaining visibility into the health of the network, which touched off downstream effects including poor customer experience, churn, and an inability to upsell existing accounts. Oracle’s only proposed solution to improve performance was to throw additional, expensive Exadata systems at the problem, and while the cloud could provide some cost relief if implemented effectively, Exadata on Oracle Cloud was the only option. In short, this CSP’s impending 5G rollout looked less like a service and business opportunity and more like a looming disaster. The team knew it needed to make a move or risk massive customer churn, and that continuing to rely on Oracle would mean that while revenues were collapsing, costs would be skyrocketing. ## Technology Requirements This company’s requirements in a new system included:A modern and future-proof platform Scalability and high performanceCloud-readyAI- and machine learning-readyFaster event-to-insight ## Why SingleStoreSingleStore is built from the ground up to be the enterprise data platform that can handle modern data workloads. It offers the flexibility to deploy on-premise with [SingleStore Self-Managed](https://www.singlestore.com/product-overview/), in the cloud with [SingleStore Helios](https://www.singlestore.com/product-overview/), or, as a number of SingleStore customers are doing, running both in a Hybrid strategy. SingleStore offers a  future-ready platform with seamless migration from Oracle:Highly performant, scalable distributed architectureNext generation- and 5G-readyCloud- and AI/ML-readyPredictive event-to-insight in real timeLower TCO and better price/performanceArchitected to support crucial Loading and Reporting functionsSimplified management ## SolutionWith SingleStore, the customer is tackling 5G with a true technology and business partner offering:A low-risk, high-confidence migration strategy from legacy architecture to modern platform Higher performance and easy scalability using more cost-effective commodity hardware instead of expensive proprietary hardwareIntegration with modern data sources such as Kafka and S3 to deliver predictive analytics nativelyThe current SingleStore deployment at this CSP encompasses multiple  applications totaling more than 500 nodes and mainly supporting what we will call, for purposes of this document, the Core Network System.Data from the Core Network System primarily enables field technicians to look up the current and past states of network health and RAN equipment data. Data scientists use this data to build statistical models to detect degradation in Quality of Service (QoS) and equipment failures, and network planners can assess network capacity utilization and plan capacity expansion accordingly.Core Network System’s existing landscape, shown in the image that follows, routed data from networks and the various equipment-specific element management systems through a Parser. A Loader flowed data into multiple regional databases that was used to power the analytical applications and fast dashboards. Moreover, the same data is communicated via a Messaging Bus and an Apache Hadoop vGRID to various data consumers. *Core System X Existing Landscape* ## By working with SingleStore, this CSP has been able to modernize the architecture of one of the Core Systems, as shown in the image that follows, by encapsulating the existing Parser and Loader in a Kubernetes Cluster. The Kubernetes Cluster communicates with a new SingleStore Loading Cluster, and both communicate bidirectionally with a Kafka Bus that feeds a new SingleStore Reporting Cluster.A second Kubernetes Cluster built on Springboot- and React-based microservices now communicates with the Messaging Bus, clients, and downstream systems. These have led to much faster ingestion in real time and more than a 10-100X improvement in latency, coupled with millions in savings compared to the legacy architecture. *Core System X Modernization with SingleStore* ## Now implemented on SingleStore, the Core Network System provides operational analytics about this CSP’s network in real time and near real time. These analytics also measure internal network efficiencies and impact employee compensation based on a myriad of KPIs.This customer is also using SingleStore to support what we will call Core System Y, a trouble ticketing system for cell sites. If Core System X shows QoS degradation or equipment failure, this creates a trouble ticket in Core System Y and feeds it into a network maintenance workflow for resolution.From a support standpoint, SingleStore required no staff augmentation at the customer, and since SingleStore is far less complex and more user-friendly to manage than Oracle, it was relatively simple to retrain existing Oracle DBAs to support SingleStore. ## Outcomes By innovating with SingleStore,  this CSP is able to solve major issues that are common across the communications and streaming media industry today while positioning itself for the future. ### Big Performance Gains and Cost Savings The customer is now experiencing 6-100X faster query performance and reaping $5.4 million in annual savings by moving to  SingleStore. #### Modern, Data-Ready, and Future-Proof Not that long ago this CSP looked to the future with trepidation because its legacy data architecture could not even effectively handle 4G, much less the massive data growth required to deliver 5G. Now it has achieved its journey to 5G with a scalable, high-performance data platform that is cloud- (and on prem-, and hybrid-) ready, AI- and machine learning-ready, and enables the real-time and near real-time event-to-insight capability it needs to compete in today’s millisecond economy. Its modern data fabric will also support its upcoming initiative to build a “Next Best Recommendation” app that equips retail store associates with real-time recommendations about cross-sell and upsell opportunities based on customer data. #### Attaining Tens of Thousands of KPIs and Ready for More Compensation in this customer’s organization is heavily tied to meeting KPIs, and since deploying SingleStore, the network division within the  customer has attained a remarkable 18,000 KPIs companywide. This is especially important because it can now confidently face the 15-20% organic YoY growth it is experiencing on its network, driven in part by an explosion of 5G usage that will triple KPIs to 90,000 and another 20,000 KPIs being driven by growth in the next phase of 5G usage. ## ***SingleStore is helping companies compete and win across every vertical. [Learn more →](https://www.singlestore.com/made-on/)*** ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/top10retailer/ # One of the World’s Top 10 Retailers is Saving Millions, and Solving Billions in Data Issues, with SingleStore By innovating with SingleStore, a retail giant is gaining massive cost savings and improved labor productivity while serving its customers better. # One of the World’s Top 10 Retailers is Saving Millions, and Solving Billions in Data Issues, with SingleStore Solving $1B+ business challenges including on-shelf availability $1B+ Increasing BoH accuracy 10% to generate $50 million 10% = $50M Ingested 3.5B rows in 7 minutes 156x faster Recovery Point Objective now 68x faster 68x RPO One of the world’s top 10 retailers operates thousands of stores offering tens of thousands of items across multiple categories. ## Challenges/GoalsThis massive organization had clearly found success, but that success was being eroded due to challenges with legacy systems, data, hardware, and design that were costing it dearly and slowing crucial processes to a crawl. ### Technical Issues This retailer's inventory forecasting process was not only incredibly complex and time-consuming, but was also fragile and failure-prone, which made the situation even worse. It was also costly and complex to scale. For example, the inventory forecasting required a 1.5 billion-row operation that took up to eight hours to perform. This inventory operation routinely failed, which would take down a store’s entire inventory system, and it took up to five hours to alert and dispatch the five technicians it took to fix the problem. As shown in the image that follows, the inventory forecasting process was incredibly complex and required extensive data movement: *Top 10 Retailer’s existing architecture before SingleStore* ## The retailer’s Order Interaction Services (OIS) system was running on Microsoft AzureSQL, with Redis as a caching layer to try to obtain faster performance. It performed calculations that were ETL’d over to an on-premise database, part of its Central Systems infrastructure, along with data from another system that was also ETL’d.The resulting data was pushed to thousands of Ordering databases (one per store) to calculate in-store inventory and balance on hand (BoH).Once this calculation was complete at each store, it had to be pushed back to Central Systems via an additional ETL process, where the data resided in OIS as the single source of truth, and at long last the retailer could finally have accurate inventory and BoH counts across its entire operation.The stores were still using SCO Unix (GA: 1983) for some of their systems, and the retailer had to employ event hubs to combine all the geographically dispersed data.All of this data movement across multiple systems and bottlenecks made the inventory forecasting process extremely complex and failure-prone, preventing the retailer from scaling its data solution — and its business. ### Business Impacts This retailer quantified the business impacts of its legacy data architecture: - It was losing 5.4 million labor days per year related to these failures, which translated to $950.4 million in wasted labor cost per year. - Its data downtime was making it impossible to effectively manage BoH, and every outage knocked out the mobile app for employees, which severely limited their ability to serve customers in-store. - Another key component of any retail operation, on-shelf availability, had become a $1+billion headache for the company. If inventory is somewhere in the system but not on the shelves, or is simply out of stock and unavailable, the bottom line is that items are not on shelves available for purchase, and that costs the retailer money literally every minute. #### The Way Forward There was also some potential good news in the company’s calculations: it determined that every 2% increase in BoH accuracy would result in $10 million in additional sales annually. It crafted a blueprint for a Unified Data Store, highly performant for both data ingest and access. This would streamline operations and make it faster and more accurate for all of its in-store employees to perform tasks related to inventory and SKU management, product expiration, new product ordering, and more. This would directly support its corporate goals around deepening what the company perceives as its four competitive moats — **fresh product, its store brands, data and personalization,** and **a seamless ecosystem** — as well as reducing operating costs to improve margins. It would also support business unit initiatives such as: - Sourcing products at the peak of flavor and freshness - Reducing transit times from distribution centers - Simplifying in-store tasks and improving scheduling - Ensuring that stores are always stocked with products shoppers want Plus, store associates who are empowered with the right data when they need it are far more likely to be friendly and happy when dealing with customers — the exact opposite of, “I’m sorry, our mobile app is down so I am having trouble checking on X for you.” ## Technology Requirements This massive retailer’s technology must-haves included:A master data store for multiple inventory and ordering appsA highly performant data engine with a working data set encompassing tens to hundreds of terabytesSupport for both streaming and batch data ingest 1.5 billion rows in <30 minutes Low-latency performance to resolve queries in <1 second Five 9’s of uptimeReducing forecast job run time from 4-8 hours to <30 minutesSharded tables for queries, eliminating multiple points of failureFlexibility for various types of analytics including OLTP, Simple Analytic, Complex Analytic, JSON, and AggregatesIntegrations with Power BI, Tableau, and application frameworks from .NET and PythonMultiple Availability Zones as well as Regional Zones in Azure (self-managed) ## Why SingleStoreTo resolve these costly issues, the retailer kicked off a rigorous search process and PoC for identifying a modern solution for its business. SingleStore’s main competitors for this business included the incumbents, Azure Cloud Services, Azure SQL, and CosmosDB; and potential new rival Snowflake.As shown in the image that follows, the retailer threw down the gauntlet by challenging SingleStore, after an initial TPC-H demo, to ingest 1.2 billion rows of data in less than 30 minutes, a process that was taking it 4-8 hours every night.SingleStore’s response: ingested 2.3X the data, 3.6 billion rows, via SingleStore Pipelines in less than seven minutes. *SingleStore PoC delivered 2.3X the data in 1/14 the time* ## The PoC was also designed to prove out features and capabilities for query performance as well as more complex update table processes. SingleStore’s fast INSERT-DELETE-UPSERT capabilities delivered, notching a significant improvement versus the customer’s existing insert-delete-rename table process. At that point this customer gave the Microsoft Azure team multiple attempts to come up with a better solution. In the end, the team conceded that it could not match SingleStore’s performance, and offered to have the customer purchase SingleStore via the Azure Marketplace as its only viable option.In addition to its market-leading ingest speed, the giant retailer chose SingleStore for:Ability to support streaming ingest via SingleStore Pipelines, primarily from Azure Blob Storage, along with data enrichment and visualization capabilitiesLightning-fast query performanceIntegration with Power BI, Tableau, and application frameworks from .NET, Python, and moreAbility to directly ingest from Kafka using SingleStore Pipelines to reduce points of failure and interdependencies related to ETL processesHorizontal scalability Lower TCO ## SolutionThis globally recognized retailer worked with SingleStore to build its Master Data Store on [SingleStore Self-Managed](https://www.singlestore.com/product-overview/) to provide a data service for multiple inventory and ordering applications across the organization. As shown in the image that follows, SingleStore is replacing Azure SQL, acting as the new OIS database, and its support of Kafka pipelines allows for direct import and export of data with multiple systems without the need for costly and slow ETL, including between the Ordering database and Event hubs.This dramatically reduces the time required to perform the 1.5 billion-row inventory job while reducing points of failure within the system. Ingest occurs via raw ingestion as well as aggregated tables via stored procedures in pipelines. The majority of tables in the new system are columnar, with some reference and rowstore tables as needed.More importantly, the queries are so fast that SingleStore also eliminated the customer’s need for the Redis Cache that it used previously to try to speed up the OIS database on Azure SQL. *SingleStore is replacing AzureSQL and Redis* ## This innovative retailer redesigned its schema and collapsed existing table structures to optimize for SingleStore Sharded Tables, and as a result is obtaining sub-second query response time with hundreds of concurrent users.The system includes six 16-node clusters, an 8-node cluster, and a 6-node cluster for SingleStore functionality, with three 16-node clusters and two 8-node clusters for Microsoft Power BI and Business Objects. ## Outcomes By innovating with SingleStore, this retail giant is gaining massive cost savings and improved labor productivity while serving its customers better: ### Resolving Billion-Dollar Headaches By adopting SingleStore’s solution, this customer will realize several hundred millions of dollars in cost savings related to lost labor associated with inventory job failures. The company is gaining back the nearly one billion dollars it was losing annually in wasted labor cost, and by optimizing its overall data processes, it is resolving what was another billion-dollar issue, poor on-shelf availability. #### Generating Tens of Millions in Additional Annual Revenue With faster and more reliable inventory forecasting, this customer estimated it will be able to increase BoH accuracy by 10%, which will generate $50 million in additional revenue by ensuring fresh stock of the products shoppers want. #### Other Major Structural Technology and Business Wins This customer slashed its recovery point objective from eight hours to seven minutes: nearly 68 times faster. It eliminated ETL tooling by consuming events directly from Kafka, advancing the state of the art across its data landscape while reducing cost and complexity by getting rid of another middleware. This more efficient architecture allows for greater scalability and paves the way for expansion to other lines of business across the organization. ## ***SingleStore is helping companies compete and win across every vertical. [Learn more →](https://www.singlestore.com/made-on/)*** ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/made-on/ucb/ # UCB Accelerates Life-saving Drug Discoveries by Reducing Query Latency 30x with SingleStore on Azure UCB chose SingleStore to support scientists all over the world who depend on the UCB platform every day to collect and prepare their data themselves — getting exactly what they need for their experiments in real time. # UCB Accelerates Life-saving Drug Discoveries by Reducing Query Latency 30x with SingleStore on Azure “Thanks to SingleStore, we can do more and do it faster, which is invaluable to our research.” Frédéric Vanclef Senior IT Expert, UCB Query latency improvement 30x Batch data refresh ops improvement 48x Discovering new medical therapies and drugs is an expensive and time-consuming process for biopharmaceutical companies, but high-performance computing and interactive data analytics can accelerate discovery and time-to-market. [UCB](https://www.ucb.com/) is a global biopharmaceutical company known for its work on finding cures for severe immunology and neurology disorders. Much like SingleStore, UCB’s focus is on the moments that matter — everything else follows. ## Existing Data Stack Oracle ## Use Cases - Operational analytics - Real-time analytics ## Challenges/Goals UCB’s existing data backbone built on legacy Oracle database technology was struggling to meet the new data platform’s performance demands. Scale was also a concern for UCB, as its projected future data volumes would make its current system unstable. UCB wanted to build a data platform for early stage drug discovery enabling scientists to quickly access research data via self-service and thus accelerate the early discovery process. Its goals included: - Decreasing the time scientists spend waiting for data Previously, scientists had to wait for days or weeks for the data to be made available for analysis by IT. - Helping scientists reach answers faster A faster and easier-to-use system would allow scientists to test hypotheses quickly. - A user-friendly self-service interface Scientists would be able to use this system without needing assistance from IT. They could easily pick and choose the right data for their experiments, prepared in the way that makes the most sense for the success of the experiment. ## Technology Requirements The new early stage discovery data platform needed to drive faster query performance, while being able to easily scale to handle the large, complex queries scientists used to gather research data. The new solution had to accommodate massive data sets and growth so the company wouldn’t need to transition to another database in the future. More importantly, UCB’s new early stage discovery data platform needed to be built around the FAIR principle: Findable, Accessible, Interoperable, and Reusable. The chosen database technology would need to fit this approach and easily connect with the rest of UCB’s data stack. ## Why SingleStore Up to 800 scientists worldwide rely on UCB’s data platform every day to power their essential research. “We chose SingleStore because it offered a modern database that can accelerate time to insight with ultra-fast ingestion, super-low latency, high-performance queries, and high concurrency,” said [Frédéric Vanclef](https://www.linkedin.com/in/fr%C3%A9d%C3%A9ric-vanclef-6359bb1/), Senior IT Expert, UCB. SingleStore offers parallel, high-scale streaming data ingest that can handle trillions of events per second for immediate availability and concurrency for tens of thousands of users, which supports UCB’s current needs and positions it for future growth. “We chose SingleStore because it offered a modern database that can accelerate time to insight with ultra-fast ingestion, super-low latency, high-performance queries, and high concurrency.” Frédéric Vanclef Senior IT Expert, UCB ## Solution SingleStore was simple for UCB to implement. SingleStore offers SQL Wire Protocol compliance, which provided a familiar querying experience that many UCB project managers and developers were used to. Built-in batch and real-time data pipelines connect to a wide range of big data solutions, including Hadoop, Apache Spark, and Apache Kafka, supporting billions to trillions of rows. ## Outcomes With SingleStore, UCB is now giving scientists what they need in real time to get the answers they need faster to drive their research: ### Empowering Scientists with a High-Performance Self-Service Solution UCB scientists can now collect and prepare their data themselves, getting exactly what they need for their experiments. The SingleStore-powered data backbone gathers all of the research and referential data into a single source of truth, allowing users to select from a wide range of high-quality data. Now, scientists can ask more questions during early stage drug discovery. “Thanks to SingleStore, we can do more and do it faster, which is invaluable to our research,” said Vanclef. #### Elevating the Role of IT From Tactical to Highly Strategic UCB has a dedicated IT support team to assist its scientists. Before the rollout of the early stage discovery data platform, this team was responsible for handling data requests from scientists. Unfortunately, this scenario meant scientists experienced long delays between when they asked for the data and actually received it. With the new self-service solution, the IT team was able to transform its mission and actions from tactical to highly strategic. #### Accelerating Discovery of New Drugs and Medical Therapies UCB’s new data backbone has massive improvements in query speed and latency. Instead of being forced to wait up to 20 minutes for query results, scientists now have access to real-time data and query results in 20 seconds, reducing query latency by more than 30X. They can check on available data sets in real time, eliminating delays between data publication and availability in the data mart. The platform’s batch data refresh operation run times dropped by 48X: from 4 hours to 5 minutes(!). #### Providing Scientists with Analytical Flexibility Each data type has its own optimal analytics approach, requiring different tools to handle the wide range of information that UCB scientists work with. SingleStore supports multiple popular analytics solutions so that scientists can work with their preferred applications for a particular experiment. ## Future Plans The UCB team, led by [Didier Chalon](https://www.linkedin.com/in/didierchalon/), Principal Scientist and Data Architect, is now working with SingleStore as it builds its Zeus internal B2B analytics app. The company can confidently evolve its data infrastructure with the SingleStore platform, which can manage SQL, JSON, full text and vector workloads in one unified platform. ***SingleStore is helping companies compete and win across every vertical.***[Learn more →](https://www.singlestore.com/made-on/) ## Make your moment, made on SingleStore ### How can we help? --- Source: https://www.singlestore.com/partners/confluent-singlestore-gen-ai/ # Accelerating Real-Time Gen AI with SingleStore and Confluent Unlock the power of real-time generative AI with SingleStore and Confluent. By combining SingleStore’s ultra-fast vector database with Confluent’s data streaming platform, businesses can process and analyze data as it streams in. - [Partner Directory](https://www.singlestore.com/partners/) - / Confluent # Accelerating Real-Time Gen AI with SingleStore and Confluent ## Summary Unlock the power of real-time generative AI with SingleStore and [Confluent](https://www.confluent.io/confluent-cloud/?utm_campaign=tm.pmm_cd.cwc_partner_singlestore_generic&utm_source=singlestore&utm_medium=partnerref). By combining SingleStore’s ultra-fast vector database with Confluent’s data streaming platform, businesses can process and analyze data as it streams in. With Confluent, businesses can move data from various sources, cleanse and enrich data streams on the fly with Apache Flink, delivering to SingleStore in real time to power generative AI applications. **Confluent is a complete, enterprise-grade distribution of Apache Kafka offering:** - **Cloud native.** 10x Apache Kafka service powered by the Kora Engine - **Complete.** A complete, enterprise-grade data streaming platform with 120+ pre-built connectors and in-flight stream processing powered by Apache Flink - **Everywhere.** Confluent is available everywhere your data and applications reside whether in the cloud, self-managed, hybrid or multi-cloud **Use SingleStore and Confluent for Retrieval Augmented Generation (RAG)** With SingleStore and Confluent, businesses achieve a new level of efficiency and accuracy in their AI-driven applications, unlocking greater value from their data. The [SingleStore Sink Connector](https://www.confluent.io/hub/singlestore/singlestore-kafka-connector) allows organizations to easily access their high-value data streams from within SingleStore to power generative AI use cases. **Develop your gen AI applications with SingleStore and Confluent today through**[SingleStore Spaces](https://www.singlestore.com/spaces/ingest-data-from-confluent-cloud-kafka/). ### Resources [SingleStore Docs](https://docs.singlestore.com/cloud/integrate-with-singlestore-helios/load-data-from-the-confluent-kafka-connector/) [SingleStore & Confluent: Better Together to Power Modern Real-Time Data Architecture](https://www.confluent.io/events/kafka-summit-americas-2021/singlestore-and-kafka-better-together-to-power-modern-real-time-data-ksam21/) ## Details ### Partner Type Technology ### Product Streaming ### Region Global --- Source: https://www.singlestore.com/pipelines/ # SingleStore Pipelines: Stream Data From Kafka and S3 SingleStore Pipelines stream data from Apache Kafka, Amazon S3, Azure Blob and HDFS into the database with one CREATE PIPELINE command, transforms included. # CREATE PIPELINE Effortlessly set up streaming ingest feeds from Apache Kafka, Amazon S3, and HDFS using a single CREATE PIPELINE command ## Extract, transform, load **Extract**Pull data directly from Apache Kafka, Amazon S3, Azure Blob, or HDFS with no additional middleware required **Transform** Map and enrich data with user-defined or Apache Spark transformations for real-time scoring, cleaning and de-duplication **Load** Guarantee message delivery and eliminate duplicate or incomplete stream data for accurate reporting and analysis ## Optimized for Streaming - **Rapid Parallel Loading** Load multiple data feeds into a single database using scalable parallel ingestion - **Live De-Duplication** Eliminate duplicate records at the time of ingestion for real-time data cleansing - **Simplified Architecture** Reduce or eliminate costly middleware tools and processing with direct ingest from message brokers - **Exactly Once Semantics** Ensure accurate delivery of every message for reporting and analysis of enterprise critical data - **Built-in Management** Connect, add transformations and monitor performance using intuitive web UI - **Build Your Own** Add custom connectivity using an extensible plug-in framework ## Test drive SingleStore Enjoy the ultra-high performance and elastic scalability of SingleStore. ## Integrated Architecture Efficiently load data into database tables using parallel ingestion from individual Apache Kafka or Amazon S3 brokers. ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/platform/clusters/ # SingleStore Clusters: Separate Storage and Compute SingleStore clusters scale storage and compute independently, so several workloads share real-time access to one copy of the data instead of separate copies. # Clusters Independent storage & compute Bringing real-time to innovative teams ## A unified database for modern applications Eliminate the complexity and cost of storing data across multiple, disparate silos. Build workloads within the SingleStore platform and run them on isolated compute deployments. Scale compute on-the-fly — independent from storage — while providing low-latency access to shared data. ## Blazing-fast shared data access Database sharing gives you the flexibility to attach databases across multiple clusters to power a diverse set of workloads while maintaining ultra-low latency. We don’t compromise on speed and scalability — with SingleStore you get both. Attach and detach databases across diverse clusters, keeping consistent and isolated performance. ## Reduce TCO Eliminate the cost and complexity of moving and maintaining data between multiple workloads. Using a single platform across compute workloads brings significant cost savings. SingleStore’s unique design means compute can be scaled out using the native clustered architecture, rather than simply scaling up using larger machines — ultimately saving you money. Mauricio Aristizabal Principal Data Architect, impact.com > Thanks to SingleStore, we're delivering sub-second reports, dashboards, exploratory BI, APIs and even by-key lookups, all from the same real-time streamed dataset with many billions of records, so all our users get fast answers on up-to-the-minute data. We further leverage Clusters to isolate and tune compute resources for each of those consumers, so they are protected from noisy neighbors and meet their specific SLAs while keeping costs in check. Kannan Balasubramanian Senior Software Engineer, ZoomInfo > With SingleStore we've achieved 24x faster response times and a 75% reduction in total cost of ownership. ## Cluster features RBAC Role-Based Access Control (RBAC) ensures access is restricted to only what is necessary Enterprise-grade encryption Safeguard data at rest and in motion. ISO 27001 and SOC 2 Type 2 certified. Granular scalability SingleStore allows granular scalability and isolation of compute resources ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read the docs Learn more about Clusters --- Source: https://www.singlestore.com/replace/mysql/ # Replace MySQL With SingleStore to Scale Out Replace MySQL with SingleStore when a single node can no longer keep up: scale out, run fast queries and analytics, and migrate with help from our team. # MySQL slowing you down? Switch to a distributed SQL database built for speed, scale and performance. ## Where MySQL stumbles, SingleStore shines Single node databases such as MySQL weren't built to power today’s high-scale, fast, data-intensive applications. SingleStore provides ultra fast queries and elastic scalability to deliver extreme application performance no matter how fast your business is growing. Replace MySQL with SingleStore and thrill your customers. ### MySQL Wire Compatible No need to rewrite all of your queries, install new plugins or libraries, or learn new dialects. Use a database that just works. ### Performance for Demanding Applications Power your applications with a database built for ultra fast ingest and high performance queries ### Familiar, Standard SQL, at Scale Get the familiarity of SQL on a cloud-native platform designed for data-intensive applications and analytical systems ## Developers that have switched to SingleStore “With SingleStore, we no longer look at the database as a limiting factor in our business.” Christoph Malassa Head of Data and AI Platforms, Siemens “I don’t think this business unit is viable for us without SingleStore. We couldn’t hit the performance requirements with MySQL.” “SingleStore has seriously decreased our infrastructure complexity, allowing us to move faster and with more confidence. This all started with search, but now it's far bigger than that. By implementing SingleStore, we get to impact everything.” ## An Entire Team Committed to Your Success ### 24x7 Support Customers can reach out to our Technical Support Engineers at any time. We can help you with performance optimization, schema design, or technical problems. ### Our Customers Love Us If you peruse any of our Gartner Peer reviews, you’ll see how much customers value our technical support. ### Commitment to Success You can reach out to our team with your questions or schedule quick calls to dive deeper into any topic. SingleStore demo ## Migrating Your Data? Talk to an engineer for expert advice. ## It’s Easy to Try Out **1. Create a Cluster**We deploy and manage your cluster on AWS, Azure or Google Compute Cloud. Choose the size of your database cluster and go! Pricing is all incluse: compute, storage, bandwidth and technical support. **2. Load Your Data**Load your MySQL schema and data dumps with the tools you’re used to using, or use our interactive tutorials to load CSV, JSON, Avro or Parquet files from any major cloud provider. **3. Optimize Your Queries**Take your queries that were running slowly and run them on your new SingleStore cluster. You’ll immediately see improvements. Further tune your queries using SingleStore tools. ## Global leaders choose SingleStore ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/augment/ # Accelerate Analytics on Live Data With SingleStore Add SingleStore beside your transactional database or warehouse to run fast, interactive analytics on live data without moving your applications. # **Accelerate Your Analytics** Power real-time, interactive applications ## **Augment for speed with SingleStore** Existing transactional databases like MySQL or MongoDB® are not built for analytics because they use row-based storage. On the other hand, analytics-first data engines and data warehouses are painfully slow because they have to read — and write — data all the way from the cloud-object store. With SingleStore, a data platform for pros, companies introduce [real-time analytics](https://www.singlestore.com/solutions/real-time-analytics/) into their existing data stack with minimal code changes, immediately taking advantage of millisecond response times. The best part is you don’t have to replace your existing data stores. Just plug  SingleStore in between your transactional and analytical database, and start reaping benefits right away. [See it for yourself by starting Free](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Faugment%2F) -> ### **Augment your Data warehouses** Leading enterprises are augmenting their [legacy or cloud data warehouses](https://www.singlestore.com/resources/solution-briefs-data-warehouse-augmentation-with-singlestore/#:~:text=Augmentation%20with%20SingleStore-,SingleStoreDB%20Self%2DManaged%20surpasses%20the%20limits%20of%20data%20warehouses%20to,low%2Dlatency%20analytics%20and%20applications.) with SingleStore as the fast layer to drive ultra-fast analytics and power modern data applications. Run analytics on data as it arrives, at up to 50% lower TCO, by augmenting your data warehouses with SingleStore. **Get started today!** **Step 1** - [Sign up](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Faugment%2F)for SingleStore for free **Step 2** - [Create pipeline](https://docs.singlestore.com/cloud/getting-started-with-singlestore-helios/getting-started-next-steps/guides/augmenting-your-data-warehouse-to-accelerate-bi/#singlestore-pipelines) or CDC out from your warehouse **Step 3** - [Bring in your data](https://docs.singlestore.com/cloud/getting-started-with-singlestore-helios/getting-started-next-steps/guides/augmenting-your-data-warehouse-to-accelerate-bi/#data-ingest) and [test your queries](https://docs.singlestore.com/cloud/getting-started-with-singlestore-helios/getting-started-next-steps/guides/augmenting-your-data-warehouse-to-accelerate-bi/#testing-your-queries) **Step 4** - [Sign up for a meeting](https://hello.singlestore.com/c/AlexanderPorter) with an expert **Case Studies:** [How ZoomInfo Augmented Big Query to Drive 24x Faster Intent to Action](https://www.youtube.com/watch?v=uUvVmV123KI) [How Three Companies Use SingleStore for Data Warehouse Augmentation](https://www.singlestore.com/blog/how-companies-use-singlestore-data-warehouse-augmentation/) **Learn More:** ### Augment Hadoop for faster analytics Hadoop is not optimized for the demands of modern intelligent applications and fast analytics. Enterprises are [augmenting Hadoop](https://www.singlestore.com/resources/) and moving workloads into SingleStore to run **ETL and analytics in one database** at a fraction of the costs — with zero complexity. **Get started today!** **Step 1** - [Sign up](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Faugment%2F)for SingleStore for free **Step 2** - [Create pipeline](https://docs.singlestore.com/cloud/load-data/load-data-with-pipelines/how-to-load-data-using-pipelines/load-data-from-hdfs-using-a-pipeline/) from HDFS or CDC out **Step 3** - Run your Hadoop jobs or test your queries **Step 4** - [Sign up for a meeting](https://hello.singlestore.com/c/AlexanderPorter) with an expert **Case Studies:** [Comcast - Real-Time Stream Processing Architecture with Hadoop and SingleStore](https://www.singlestore.com/blog/real-time-stream-processing-with-hadoop/) [Impact.com - Driving sub-second latencies by augmenting Cloudera](https://www.singlestore.com/made-on/impact/) [SingleStore Improves Financial Operations for a Major Oil and Gas Company](https://www.singlestore.com/blog/memsql-improves-financial-operations-for-a-major-oil-and-gas-company/) ### **Augment your data lakes to power low-latency apps** About 90 percent of enterprise data remains “frozen” in lakehouses (such as Apache Iceberg tables) and is unusable for powering fast interactive applications, analytics or AI. SingleStore offers an integration with **Apache Iceberg,** enabling low-latency ingestion and bi-directional data flow to unlock data from Iceberg tables to power sub-second analytics and applications. **Get started today!** **Step 1** - [Sign up](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Faugment%2F)for SingleStore for free **Step 2** - Create pipeline or CDC out **Step 3** - Bring in your data and test your queries **Step 4** - [Sign up for a meeting](https://hello.singlestore.com/c/AlexanderPorter) with an expert **Register Now:**[Unfreeze your Iceberg Lakehouse to Power Intelligent Applications](https://events.singlestore.com/product-launch-unfreeze-your-iceberg-lakehouse-to-power-intelligent-application/) ### **Power Real-Time Analytics and Apps** With parallel streaming ingestion, fast writes, low-latency analytics, and vector/search capabilities in a single unified data platform, SingleStore powers real-time applications with analytics, without the need for complex ETL or data movement. **Learn more :**[SingleStore for Real-Time Analytics](https://www.singlestore.com/solutions/real-time-analytics/) ### **Get started with SingleStore** **Try SingleStore now for free**Low-latency, high-performance vector and hybrid search[Try SingleStore Now](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Faugment%2F) **SingleStore Spaces**Browse through a collection of quickstart modules and solve common problems in a few minutes with end-to-end applications using SingleStore.[Start with a Notebook template](https://www.singlestore.com/spaces/) ## Start your SingleStore trial ### Explore more resources --- Source: https://www.singlestore.com/solutions/building-gen-ai-apps/ # Build Gen AI Apps With SingleStore Vector Search Build gen AI apps on SingleStore: hybrid vector and keyword search, RAG patterns and SQL in one database, with guides for React and Vercel apps. # **Build Gen AI apps with Simplicity** SingleStore offers a performant vector database together with an enterprise-grade data platform with in-built functions, delivering fast hybrid search that includes keyword match, vector similarity and semantic search with high recall to power modern generative AI applications. Even more, you can utilize various architecture patterns including [Retrieval Augmented Generation (RAG](https://www.singlestore.com/solutions/retrieval-augmented-generation/)) or fine-tuning to start working with LLMs and building your gen AI application. **Key capabilities of SingleStore for building generative AI applications include:** **Built-in fast vector and hybrid search** Combine high-performance vector/semantic searchwith indexing, along with full-text search capabilities **Rich analytics capabilities** Perform filters based on metadata and joins across tables **Scalable price performance** Store and query vectors alongside your enterprise data including SQL, JSON and other data types **Vibrant ecosystem of frameworks** Use leading integrations to bring in data, create embeddings + query LLMs using Notebooks ## Using SingleStore as the vector database SingleStore offers a general-purpose distributed, scale-out SQL database and has supported vectors since 2017. It supports high-throughput transactions and low-latency analytics, together with fast vector search capabilities. With SingleStore you can work with structured, semi-structured and unstructured data, filter on metadata and run aggregations, sub queries and re-ranking all in a single engine — without having to move or replicate data. Developers can easily perform fast hybrid search — combining semantic search with full-text search — in a single SQL query on petabytes of data. [Choosing a vector database for your generative AI stack](https://www.singlestore.com/blog/choosing-a-vector-database-for-your-gen-ai-stack/) SingleStore supports both **exact** and **approximate** **nearest neighbor searches and** [recently launched](https://www.techtarget.com/searchdatamanagement/news/366555756/SingleStore-unveils-features-aimed-at-enabling-real-time-AI) new indexing for vectors (and a vector data type as well). SingleStore supports vectors and vector similarity search using [dot_product](https://docs.singlestore.com/managed-service/en/reference/sql-reference/vector-functions/dot_product.html) (for cosine similarity) and [euclidean_distance](https://docs.singlestore.com/managed-service/en/reference/sql-reference/vector-functions/euclidean_distance.html) functions. And it efficiently implements vector similarity matching using [Intel SIMD instructions](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions). [Working with vector data in SingleStore](https://docs.singlestore.com/cloud/developer-resources/functional-extensions/working-with-vector-data/) More importantly, SingleStore also offers integrations or plugins for leading tools like [OpenAI](https://www.singlestore.com/spaces/semantic-search-with-open-ai-embedding-creation/), [Hugging Face](https://www.singlestore.com/spaces/semantic-search-with-hugging-face-models-and-datasets/), [LangChain](https://www.singlestore.com/spaces/launch-open-source-apps-with-lang-chain/) and [LlamaIndex](https://www.singlestore.com/resources/webinar-how-to-build-a-genai-app-with-llama-index/), making it easy to get started quickly. And with [SingleStore Notebooks](https://www.singlestore.com/spaces/getting-started-with-notebooks/) developers can quickly prototype and deploy generative AI applications that combine the power of SQL and Python. [Getting started with SingleStore Notebooks](https://www.singlestore.com/spaces/getting-started-with-notebooks/) ## A simpler, more powerful vector database ### Hybrid search + full-text search [Fast vector + full-text search](https://www.singlestore.com/platform/search/). Indexed [ANN search](https://www.singlestore.com/blog/singlestore-indexed-ann-vector-search/), fast K-NN search, dot_product and euclidean distance measures, metadata filtering and [re-ranking semantic search results](https://www.singlestore.com/spaces/semantic-search-with-open-ai-qa/). #### Easy to use Eliminate the complexity, licensing costs or extra training requirements of a [pure vector database](https://www.singlestore.com/blog/why-your-vector-database-should-not-be-a-vector-database/). #### Notebooks Quickly prototype and deploy with with SQL and Python [Notebooks](https://www.singlestore.com/spaces/getting-started-with-notebooks/). #### Generative AI ecosystem Ability to use platforms, plugins and libraries like [OpenAI](https://www.singlestore.com/spaces/semantic-search-with-open-ai-embedding-creation/), [AWS Bedrock](https://www.singlestore.com/resources/webinar-how-to-build-a-nocode-aws-bedrock-llm-app-on-flowise/), [Llama 2](https://www.singlestore.com/resources/webinar-how-to-build-a-llama-2-fully-private-genai-app-2023-07/), [LangChain](https://www.singlestore.com/resources/webinar-langchain-lift-off-launch-your-open-source-gpt-apps-today-2023-06/), [Hugging Face](https://www.singlestore.com/spaces/semantic-search-with-hugging-face-models-and-datasets/), [Vertex AI](https://www.singlestore.com/resources/webinar-using-google-vertex-ai-to-fine-tune-llm-apps-sep-2023/), [Vercel](https://www.singlestore.com/blog/real-time-rag-app-with-singlestore-and-vercel/) and more to build generative AI applications. #### Enterprise ready Get data security, compliance and disaster recovery appropriate for enterprise applications. ### **Build on SingleStore with leading platforms** **How to perform semantic + hybrid search using SingleStore**This demo covers how to do fast semantic search, hybrid search and image recognition using LLMs and SingleStore[Watch now](https://memsql.wistia.com/medias/b3u4in6k3s?wtime=2h27m40s) **OpenAI embeddings and vector databases crash course**Discover how to create a vector database by creating embeddings using OpenAI, storing them in SingleStore[Watch now](https://www.youtube.com/watch?v=ySus5ZS0b94) **How to build a gen AI application using Google Vertex AI**Discover how to build an enterprise-grade gen AI app using Google Vertex AI and SingleStore[Watch now](https://memsql.wistia.com/medias/b3u4in6k3s?wtime=1h58m37s) **Build a gen AI app with SingleStore and AWS**Learn how to build a mini gen AI app using new technologies like LangChain, AutoGPT, Hugging Face and OpenAI, all on AWS cloud[Watch now](https://www.singlestore.com/resources/webinar-chatgpt-dev-day-happy-hour-aws-bay-area-08-2023/) **How to use LangChain to query multiple PDFs**Take a deep dive into using LangChain and SingleStore to develop a gen AI app capable of querying multiple PDFs[Watch now](https://www.singlestore.com/resources/webinar-genai-workshop-using-langchain-to-query-multiple-pdfs-2023-06/) **How to build a fully private gen AI app using Llama2.0** Learn how to build a cutting-edge, fully private gen AI app in an air-gapped environment to prioritize data privacy and security[Watch now](https://www.youtube.com/watch?v=F3aqTtwoj9Q) **How we built a real-time RAG application for free with SingleStore and Vercel**Check out this hands-on tutorial on how to build a real-time gen AI app for free using Retrieval Augmented Generation (RAG) using SingleStore and Vercel[Read now](https://www.singlestore.com/blog/real-time-rag-app-with-singlestore-and-vercel/) **How to build OpenAI LLM apps in three simple steps**This workshop highlights building a GPT-AI application utilizing a vector database for semantic search and how to retrain the model, personalizing it for your data[Watch now](https://www.youtube.com/watch?v=9vAuGe51iDc) **How to build a financial analytics app using OpenAI + LangChain**Take a closer look at how to build a speech-to-query chatbot or ChatGPT financial app using your own data with SingleStore + OpenAI[Watch now](https://www.singlestore.com/resources/webinar-how-to-build-a-financial-analytics-app-using-openai-langchain-2023-07/) **How to build a no-code LLM app with Flowise AI**Learn how to build an LLM app from scratch using Flowise AI — and see how easy and efficient it is to create robust applications without coding[Watch now](https://www.singlestore.com/resources/webinar-how-to-build-a-nocode-llm-app-with-flowise-ai-08-2023/) **Building a gen AI app using Retrieval Augmented Generation (RAG)**Dive into this immersive, hands-on look at how to build a generative AI application on your private enterprise data with RAG using SingleStore[Watch now](https://www.youtube.com/watch?v=KgBVRLeahGo) **How to build a ChatGPT app using JSON data**How to build a sample recommendation engine or app using OpenAI and SingleStore by utilizing JSON data within your enterprise[Watch now](https://www.youtube.com/watch?v=q_JU0Aqo_Vs) **How to build a sentiment analysis app with Hugging Face**Better understand semantic search and sentiment analysis, and learn how to build an open-source AI application using Hugging Face[Watch now](https://www.youtube.com/watch?v=58N0QfDSdhY) **How to build a conversational real-time analytics app with gen AI**Learn how to build a real-time digital app ingesting and visualizing data. Harness the power of a ChatGPT Plugin to communicate with your data in plain English.[Watch now](https://www.singlestore.com/resources/webinar-how-to-build-a-conversational-real-time-analytics-app-with-genai-08-2023/) **The beginner's guide to vector databases**Unlock the potential of AI-driven applications, and best practices for integrating vector capabilities into your existing data stack.[Watch now](https://events.singlestore.com/webinar-beginners-guide-to-vector-databases) **Using ANN for vector search at speed and scale with AWS**Dive into the world of ANN for efficient vector search in our exclusive demo on AWS.[Watch now](https://events.singlestore.com/webinar-using-ann-for-vector-search-at-speed-scale-demo-on-aws) ## How to build a full-stack AI application in React Learn more about the Elegance SDK, and explore how to build full-stack applications with AI capabilities using React. ## How to build a real-time RAG application with SingleStore and Vercel Fully explore gen AI capabilities by building a modern, real-time AI app — entirely free — with SingleStore. ## **Get started with SingleStore** **Try SingleStore now for free**Low-latency, high-performance vector and hybrid search[Try SingleStore Now](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Fbuilding-gen-ai-apps%2F) **SingleStore Spaces**Browse through a collection of quickstart modules and solve common problems in a few minutes with end-to-end applications using SingleStore.[Start with a Notebook template](https://www.singlestore.com/spaces/) **Learn more:** [Vector Embeddings Explained for Developers](https://levelup.gitconnected.com/vector-embeddings-explained-for-developers-6bd9800d3635) [Vector similarity search in SingleStore](https://www.singlestore.com/blog/distance-metrics-in-machine-learning-simplfied/) ## Additional resources Blog Agentic RAG with SingleStore Blog Getting Started with OpenAI Embeddings Search & SingleStore Blog RAG Tutorial: A Beginner's Guide to Retrieval Augmented Generation Blog Build a Full-Stack AI Application in React with the Elegance SDK ## SingleStore Gen AI Trial ### Explore more resources --- Source: https://www.singlestore.com/solutions/dashboard-acceleration/ # Dashboard Acceleration for BI With SingleStore Speed up BI dashboards with SingleStore: fast ingestion, fast queries and elastic scale so dashboards reflect live data, with your existing BI tools. # Modern Analytics and Business Intelligence Blazing fast analytics delivering insights in every moment. ## Analytics and Business Intelligence SingleStore is the ideal all-in-one data platform for analytics and BI, delivering seamless data ingestion, extreme query performance, and elastic scaling for every data workload ### NewSQL Database With features purpose-built to accelerate dashboards ### Converged Platform Designed to support any data of any shape or size with a singular table type ### Built for Fast Dashboards High speed data ingest and concurrent user access. **Speed** Acceleration of Tableau Dashboards 80x **Scale** Powerful Dashboards Company-wide 1,500+ **Instant** From Business Event to Dashboard Availability 30 sec ## Analytics Partners SingleStore is optimized for modern data platforms to provide blazing fast dashboards no matter how large the scale. **Tableau + SingleStore**Enterprises can deliver faster, interactive visual analytic workbooks for the most up-to-date data. Businesses can analyze live and historical data together for real-time insights and make in-the-moment decisions.[See how](https://www.youtube.com/watch?v=XaTPyqMuZI0&t=364s) **Looker + SingleStore**Enables richer data experiences through more responsive queries on big, fast-changing data. Looker can leverage SingleStore to deliver outstanding performance for the real-time dashboards at a high degree of concurrency.[See how](https://www.youtube.com/watch?v=WplayIAgJfg&t=1260s) **Power BI + SingleStore** SingleStore can accelerate your Power BI dashboards with real-time capabilities. SingleStore databases can enable Power BI users to build high-performance visualization dashboards and share those real-time insights across the organization.[See how](https://www.youtube.com/watch?v=WplayIAgJfg&t=1260s) **Sisense + SingleStore** Together, enterprises can now deliver better understandings of your data while providing quicker analysis. Businesses can quickly analyze terabytes of data in real time, easily visualize complex datasets, and derive in-the-moment actionable insights from most up-to-date data.[See how](https://www.youtube.com/watch?v=WplayIAgJfg&t=1260s) ## Data Integration Partners SingleStore is optimized for modern data platforms to provide blazing fast dashboards no matter how large the scale. **Informatica** The Informatica Cloud SingleStore Connector allows you to read data from or write data to the SingleStore database platform. **HVR** As a source, HVR performs Log-based CDC from the binlog. Fast loads go through the bulk file loader, either directly on the server or remotely through the native client. **Talend** Talend Open Studio lets you to easily manage all the steps involved in the ETL process, using the SingleStore Connector **Azure Data Factory** Azure Data Factory can use the MySQL connector to read data from or write data to the SingleStore database platform. **Amazon Glue** AWS Glue extracts, transforms, and loads data to and from SingleStore **Confluent** The SingleStore sink connector enables you to exchange data from Kafka to SingleStore. **Stitch** Stitch allows you to configure your ETL process to balance data freshness with cost and load on your SingleStore instances. **Segment** Load your Segment data to SingleStore to run custom SQL queries on your analytic events and to generate custom reports and dashboards. **Striim** ## How It Works Whether you are looking to speed up existing dashboards, or build new data applications and analytics use-cases, SingleStore provides the performance, scalability, and simplicity to discover new insights across all your organization's data ### Make BI Dashboards Faster Connecting BI dashboards to SingleStore accelerates insights and improves the user experience with consistent, reliable low-latency responses. Eliminate slow, flaky experiences by offloading those queries to SingleStore. ### Ingest Streaming Data for Instant Analysis SingleStore can stream data from Kafka, S3, and ETL sources so you don’t have to wait to visualize your businesses data. Other systems need data landed and curated before it can be queried (Snowflake). ### Build Scalable Data Applications Data applications built on SingleStore Self-Managed are faster and more scalable allowing you to provide your customers with limitless possibilities ## Trusted by Innovative Companies of Every Size “With SingleStore, we no longer look at the database as a limiting factor in our business.” Christoph Malassa Head of Data and AI Platforms, Siemens “We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. We chose SingleStore.” “SingleStore offered the right mix of features, performance, and flexibility to address the problems we wanted to solve…our usage of SingleStore has expanded beyond our initial Ads dashboard project.” ## Modern analytics and business intelligence resources Blog SingleStore for Fastboards Whitepaper Solution Guide for Real-Time Apps Blog Fiserv on Machine Learning & Real-Time Analytics at Financial Institutions Webinar Introduction to SingleStore 2020 ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/eliminate-database-sprawl/ # Eliminate Database Sprawl With SingleStore Replace a sprawl of specialty databases with SingleStore, one relational database for JSON, full-text, vector and time series data, in any cloud or on-premises. # Eliminate Database Sprawl A Single Database to End Data Infrastructure Sprawl ## Simplify Your Data Architecture with One Ultra-Fast, Highly Scalable Database Our modern, cloud-native, relational database delivers unlimited scalability in a system that is durable, available, secure and resilient to failure, across cloud providers and on-premises. ### Multi-model Relational, JSON/BSON documents, vector search, full-text search, time-series, geospatial, key-value ### Concurrency Handles transactions and analytics, effortlessly and concurrently ### Layered Security Maintains rich security features, such as multiple forms of authentication ### Query Response Ultra-fast query response across both live and historical data ### Deployment One-click deployment unleashes full platform capabilities ## Test drive SingleStore Enjoy the ultra-high performance and elastic scalability of SingleStore. ## Eliminate Database Sprawl **Reduce Costs and Complexity by Unifying all Your Data into One Modern Cloud Database** Reduce your TCO by 60% and dramatically simplify your data architecture through SingleStore’s patented Universal Storage. ## Simplified Cloud Architecture We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. We chose SingleStore. Himanshu Gupta Director of Information Technologies, Dell Technologies ## Recommended Reading Webinar Simplifying Data Architectures With a Unified Database Webinar Eliminating Database Sprawl - Three Case Studies Case Study publica.la Speeds Search 70X, Processes Millions of Rows per Second, Lowers TCO Whitepaper Simplifying Data Architectures with a Unified Database ## Get a Personalized Demo SingleStore powers real-time applications and analytics with breakthrough performance - **Product Demo** We will run through real-time demos showing the power of SingleStore. - **Feature Comparison** We will compare SingleStore to your current solution and others you're investigating. - **Customized Pricing** We will go through your use case(s) with you and describe the schemas, queries, and tables that will be needed, to give you the most accurate information on pricing for each use case. ### Book a demo By clicking the button below you understand SingleStore will retain and process your personal information in accordance with our [Privacy Policy](https://www.singlestore.com/privacy-notice/). ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/energy/ # SingleStore for Energy: Real-Time IoT and Grid Analytics SingleStore gives energy companies real-time analytics on IoT sensor, grid and supply chain data, so teams monitor assets and respond as conditions change. # SingleStore is built for Energy Solutions Energy companies require fast and flexible data processing infrastructure that enables continuous monitoring, analysis, and response to complex systems that power our modern world. ## IoT Analytics Energy companies have geographically dispersed capital-intensive assets that require continuous monitoring and maintenance to maximize profits for optimal delivery. IoT analytic solutions can predict and avoid costly maintenance events at scale using a database platform that cost effectively streams, scores, and responds to data events in real time. One SingleStore customer built an IoT solution that predicts drill bit failure before costly outages occur. Through the use of complex scoring, they can track dozens of readings in real time to adjust drill operations to maximize performance and availability. ### Real-Time Dashboards Deliver up-to-date dashboards with live data analysis for drill downs and aggregations ### Machine Learning Enabled Run sophisticated algorithms in SQL or use third party ML frameworks such as TensorFlow ### Drop-in Compatibility Broad tool support through industry-standard SQL and connectivity APIs ## Supply Chain Analytics Fast ingestion and analytic performance enable supply chain optimizations Optimizing the energy supply chain yields improved demand forecast accuracy and reduces product delivery lead times. Supply chain analytics improves energy margins and revenue with minimal technology investment. Customers use SingleStore to drive instant visibility and respond to a variety of supply chain processes including storage management, inventory management, transportation operations, and portfolio optimization. They rely on the fast ingestion and analytic performance for their supply chain optimization programs. ## Test drive SingleStore Enjoy the ultra-high performance and elastic scalability of SingleStore. ### **How Siemens runs real-time analytics on industrial data** Siemens runs real-time dashboards over petabytes of data on SingleStore, with queries under 100ms, and auto-scales from 500 to 100,000 concurrent users. “With SingleStore, we no longer look at the database as a limiting factor in our business.” Christoph Malassa Head of Data and AI Platforms, Siemens ## Real-Time Grid Management Ingest and analyze smart grid data to enable real-time visibility Energy and utility companies manage a diverse set of equipment that is responsible of efficient operations for energy production and delivery. The collection of data can identify costly outages or support new product packaging for innovative revenue programs. One SingleStore customer ingests and analyzes smart grid data to enable real-time visibility for energy delivery while immediately identifying energy usage patterns to help customers lower power consumption. ### Scalable Analytics Analyze over 1.2 million smart meters and usage trends with real-time performance ### Predictive Analytic Stack Deliver scalable SQL against terabytes of data for data science discovery ### Stream Ingestion Ingest fast changing data without impacting updates or query performance ## Customer Benefits ### Major Oil & Gas Company #### Maintain Equipment Uptime Analyze millions of equipment conditions and events with real-time monitoring #### Reduce Operating Costs Avoid costly outages with optimized equipment operations and planned maintenance #### Predict Failures Prevent high-risk operating conditions with real-time predictive scoring [Read Case Study](https://www.singlestore.com/blog/memsql-improves-financial-operations-for-a-major-oil-and-gas-company/) ### Leading Electric and Natural Gas Utility #### Improve Grid Availability Monitor and locate grid issues in real time to improve customer satisfaction and reduce service calls #### Lower Operating Costs Predict grid operating issues to minimize costly outages and reduce operating costs #### Empower Customers Deliver real-time visibility of energy consumption to help lower customer energy usage [Read Case Study](https://www.singlestore.com/blog/memsql-improves-financial-operations-for-a-major-oil-and-gas-company/) ## Energy resources Webinar An Introduction to SingleStore: The Database for the Digital Oil Field - On Demand Blog IoT at Global Scale: PowerStream Wind Farm Analytics with Spark Blog SingleStore Improves Financial Operations for a Major Oil and Gas Company Blog Reducing Energy Consumption Via Real-Time Data ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/financial-services/fintech-and-payment-processing/ # SingleStore for Fintech and Payment Processing SingleStore runs payments, fraud and risk scoring on live transaction data in milliseconds, so fintech and payment platforms decide during authorization. # **Real-Time Decisions for Every Transaction** Power instant payments, intelligent risk scoring, and AI-driven customer experiences on a unified data foundation built for millisecond performance at global scale. **Trusted by leading financial innovators** ## **Payments are now real time by default** Instant authorization, real-time settlement, and embedded finance are eliminating batch windows. Every transaction must be scored, reconciled, and recorded in milliseconds. Systems built for overnight processing create operational friction and unnecessary exposure. ## **Fraud sophistication is accelerating** Fraud networks now operate with automation and AI. Static rules and delayed analytics increase false positives or allow losses to clear. Risk models must reason over live behavioral context, not stale snapshots. ## **Embedded finance is expanding the surface area** Payments and credit are no longer confined to banks. Platforms, marketplaces, and SaaS providers are embedding financial services into their flows. That growth multiplies data volume, concurrency, and compliance complexity. ## **Regulatory scrutiny is continuous** KYC, AML, and audit requirements demand transparent, traceable data across transactions and customer interactions. Fragmented systems create reconciliation gaps and increase operational overhead. ## **Why current architectures struggle - and what modern platforms must deliver** **Fraud scoring falls behind transaction velocity** When transaction data moves between systems before being analyzed, risk models operate on delayed context, increasing fraud exposure and false declines. **What’s needed:** Millisecond data availability from event creation to model scoring without cross-system movement or replication. **Payment spikes overwhelm core systems** Peak traffic events and merchant promotions create extreme concurrency. Legacy systems degrade under load, slowing authorization and harming merchant relationships. **What’s needed:** Linear scale with predictable performance under thousands or millions of concurrent transactions and analytical queries. **Reporting affected by batch pipelines** Risk, treasury, and compliance teams rely on overnight feeds, delaying liquidity visibility and regulatory reporting. This slows decisions and increases capital inefficiency. **What’s needed:** Operational and analytical processing on the same live dataset without separate reporting stores. **AI pilots stall in production** Fraud models and customer copilots often run on copied or sampled data, limiting reliability and governance. This limits enterprise deployments. **What’s needed:** A unified, AI-ready foundation where structured, semi-structured, and vector data coexist under consistent governance. **Data duplication increases compliance risk** Multiple data copies across fraud engines, warehouses, and lakes create reconciliation challenges and audit complexity. **What’s needed:** Centralized, governed data access with transactional correctness and fine-grained security controls. ## The performance engine for real-time fintech and payments **Unified transactions and analytics** Process payments, run fraud analytics, and power dashboards on the same live dataset, eliminating latency between operational events and insight. **Real-time ingest with instant queryability** Score transactions and update balances in milliseconds from event creation, reducing fraud exposure and improving customer experience. **High concurrency without performance degradation** Support thousands of merchants, customers, and AI agents simultaneously while maintaining consistent low-latency responses. **ACID-compliant at distributed scale** Guarantee financial-grade transactional integrity across nodes, ensuring payments, ledgers, and settlements remain accurate and auditable. **AI-ready data foundation** Run machine learning models and vector search directly on live operational data, enabling in-line fraud scoring and intelligent automation. **Built-in governance and security controls** Maintain role-based access, auditability, and data isolation without duplicating data across multiple systems. ## What you can build with SingleStore ### **Real-time fraud prevention** Fraud detection must happen within the authorization window. Traditional pipelines introduce delay between event capture and scoring. A unified, real-time engine evaluates behavioral signals, historical patterns, and model outputs instantly, reducing fraud loss while lowering false positives that frustrate legitimate customers. ### **Instant payment authorization** Payment processors and digital banks must approve or decline transactions in milliseconds under peak load. Systems that separate transaction capture from analytics struggle to maintain consistent latency. Unified processing enables reliable authorization, even during traffic spikes, preserving merchant trust and customer satisfaction. ### **Embedded finance & instant credit** Digital banks and fintech apps compete on experience. Fragmented customer data prevents consistent, contextual engagement. A unified data engine continuously updates behavioral and transactional context, enabling relevant offers, alerts, and financial insights during active sessions. ### **Live liquidity & treasury visibility** Treasury teams need continuous insight into cash positions and settlement flows. When reporting depends on delayed feeds, capital buffers remain higher than necessary. Real-time operational reporting provides up-to-the-minute liquidity visibility across payment rails and accounts. ### **Customer 360 & personalization** Digital banks and fintech apps compete on experience. Fragmented customer data prevents consistent, contextual engagement. A unified data engine continuously updates behavioral and transactional context, enabling relevant offers, alerts, and financial insights during active sessions. ## Real world outcomes ## **Areeba** ### **Unified fraud, AML & real-time insights** Areeba is a financial services innovator spun out of Bank Audi that now supports multiple banks across the Middle East and Africa as a payment gateway and loyalty program partner. Facing growing demands for real-time fraud detection, anti-money-laundering (AML) compliance, and personalised customer experiences, Areeba chose SingleStore for its ability to provide fast operational analytics on continuously updated data — a leap beyond legacy batch processing and relational systems. **Key impact and outcomes:** - Scales operational analysis across  **hundreds of millions of authorizations**  spanning years of payments data. - **Handles Areeba’s largest table (** ~100 GB) with both memory and disk storage for performance. - Supports  **combined fraud detection and AML workflows**  with Apache Spark, improving responsiveness over traditional systems. - Enables future  **real-time decisioning** to catch illicit activity and personalise offers as transactions occur. *“SingleStore is helping Areeba cover all our operational analytical needs.”* - Elie Soukayem, Director of Data and Analytics at Areeba ## Strategic advantages for your industry **Faster risk decisions** Reduce fraud loss and false positives by scoring every transaction against live context within the authorization window. **Revenue growth** Enable instant credit, dynamic pricing, and personalized offers that increase approval rates and customer lifetime value. **Architectural simplification** Consolidate transactional, analytical, and AI workloads into one platform, reducing infrastructure sprawl and integration overhead. **Scalable innovation** Support new payment products, embedded finance models, and AI-driven experiences without re-architecting the data stack. **Stronger governance** Maintain consistent, auditable data across operations and reporting to satisfy regulators and enterprise compliance standards. ## **Build Real-Time Intelligence Into Every Transaction** Transform payments, risk, and customer experience with a unified, AI-ready data foundation designed for millisecond performance. --- Source: https://www.singlestore.com/solutions/financial-services/trading-and-capital-markets/ # SingleStore for Trading and Capital Markets SingleStore gives trading and capital markets teams real-time execution insight, intraday risk and AI decisions on live market and position data. # **Real-Time Intelligence For Modern Markets** SingleStore powers trading and capital markets platforms with unified, real-time data performance - enabling instant execution insight, intraday risk visibility, and AI-driven decisioning at scale. **Trusted by leading financial institutions** ## **Markets operate at machine speed** Electronic trading, algorithmic strategies, and global connectivity have compressed market cycles from minutes to microseconds. As execution windows shrink, even small data delays directly impact fill quality, slippage, and profitability. ## **Risk is intraday and dynamic** Capital, margin, collateral, and exposure must be monitored continuously - not just at end-of-day. Fragmented systems create blind spots, forcing firms to manage risk buffers conservatively and tying up capital unnecessarily. ## **AI is embedded in front-office workflows** From alpha generation to surveillance and compliance, AI models are increasingly integrated directly into trading workflows. These models require live, relational market and position data to operate safely and effectively. ## Why traditional architectures break under real-time market requirements and what's needed **Fragmented trade and risk systems slow reaction time** Trade capture, pricing, P&L, and risk aggregation often run on separate engines with batch synchronization. This creates latency between execution and visibility, reducing decision quality. **What’s needed:** A unified data foundation that serves transactional trade data and analytical risk views from the same live dataset without movement or delay. **End-of-day processes limit intraday control** Overnight aggregation for VaR, P&L, and liquidity reporting delays actionable insight and increases reliance on static buffers rather than dynamic controls. **What’s needed:** Continuous, intraday aggregation and recalculation across positions, instruments, and counterparties with consistent, real-time correctness. **High concurrency strains performance at peak volume** Open market hours, volatility spikes, and reporting cycles generate surges in concurrent queries from traders, quants, dashboards, and AI agents. **What’s needed:** Linear scalability with consistent millisecond performance under thousands of simultaneous transactional and analytical workloads. **AI pilots stall due to stale or siloed data** Models trained on historical snapshots often struggle to transition into production environments that require live context and governed data access. **What’s needed:** An AI-ready data platform where models and agents operate directly on live, ACID-compliant production data with full auditability. **Regulatory scrutiny demands complete traceability** Trade reconstruction, market surveillance, and reporting require consistent, queryable history across years of data without compromising operational performance. **What’s needed:** Long-term, cost-efficient data retention that remains instantly queryable alongside live trading data under unified governance controls. ## The performance engine for real-time markets Unified transactions and analytics Run trade capture, execution analytics, and intraday risk aggregation on a single real-time database - eliminating data movement between operational and analytical systems. **Real-time ingest with live queryability** Market data, orders, fills, and position updates are ingested and immediately available for complex joins and calculations, supporting true intraday visibility. **High concurrency under volatile conditions** Thousands of traders, dashboards, APIs, and AI agents can query simultaneously without degrading execution performance or reporting latency. **ACID-compliant at distributed scale** Every trade, update, and recalculation maintains transactional correctness, enabling production-grade systems of record and decision. **AI-ready data foundation** Structured, semi-structured, and vector data coexist in one platform - allowing quantitative models, surveillance systems, and AI copilots to operate on live trading context. ## What you can build with SingleStore ### **Intraday P&L and risk aggregation** Trading desks require continuously updated P&L, Greeks, and VaR across strategies and instruments. Legacy overnight aggregation limits responsiveness during volatility. SingleStore enables live recalculation as trades execute - supporting faster hedging, tighter limits, and more confident capital deployment. ### **Real-time market surveillance** Surveillance teams must detect spoofing, layering, insider activity, and anomalous trading patterns as they occur. Batch review processes create enforcement lag. SingleStore supports continuous ingest and analytical evaluation across massive trade streams, enabling proactive compliance and faster investigation cycles. ### **Global position and liquidity visibility** Multi-asset, cross-border firms need consolidated views of positions, collateral, and liquidity exposure across prime brokers, custodians, and counterparties. Fragmented systems obscure real-time exposure. A unified engine provides instant visibility across regions and asset classes. ### **AI-assisted trading and decision support** Quantitative and discretionary traders increasingly rely on AI-driven signals, copilots, and scenario modeling. These tools must reason over live market data, historical trends, and current positions simultaneously. SingleStore enables complex queries and model integration without data synchronization delays. ### **Execution quality and transaction cost analysis** Execution teams monitor slippage, fill rates, and routing performance continuously. Delayed analysis limits optimization opportunities. With real-time ingest and analytics on the same dataset, firms can adjust routing strategies dynamically during live sessions. ## Real world outcomes ## **Fortune 25 Financial Services Giant** ### **Real-time wealth & trading insights** A Fortune 25 financial institution selected SingleStore to modernize its wealth and trading platforms after legacy systems could not deliver real-time performance at enterprise scale. By consolidating transactional, analytical, and emerging AI workloads into a single engine, the bank eliminated data movement between systems and enabled advisors and clients to interact with live portfolio data instantly — even during periods of intense market volatility. **Scale and performance** - **2+ petabytes**  of investment and trading data managed in production - **40,000+ concurrent users**  supported with consistent responsiveness - **10–20 millisecond**  query latency across live and historical data - Ability to analyze  **5× more data in real time**  without performance degradation ## Strategic advantages for your industry **Faster decision cycles** Move from batch-informed decisions to continuous intraday intelligence - improving execution quality, risk response, and market agility. Capital efficiency Enable real-time exposure and liquidity monitoring to reduce unnecessary buffers and deploy capital more effectively. **Simplified architecture** Consolidate transactional, analytical, and AI workloads onto one unified platform, reducing integration complexity and operational overhead. **AI production readiness** Operationalize AI and agentic workflows directly on live trading data with governance and auditability built in. **Resilient scale** Support growth in data volume, concurrency, and model complexity without sacrificing performance or reliability. ## **Build A Real-Time Foundation For Modern Markets** Unify execution, risk, analytics, and AI on one performance engine built for trading at scale. --- Source: https://www.singlestore.com/solutions/hightech/ # SingleStore for Technology Companies: Real-Time Data SingleStore is a real-time database for technology companies, with streaming ingest and millisecond queries for thousands of users on live customer data. # High Technology Solutions ## Why SingleStore For High Technology? Technology companies need to know the pulse of their customers and operations to respond when it matters most. SingleStore is the real-time database for high technology companies who want to be proactive with personalized customer engagement, live operational analysis, and real-time optimization. **Streaming Data Ingest and Store** Collect and store multiple streams of data into a relational format for real-time or historical analysis, without relying on slow batch processing. **Proven Compatibility** ANSI SQL compliant with full data persistence improves data accuracy that works with existing business intelligence and middleware tools. **Unlimited Scale and Highly Available** Shared nothing architecture for scale out or up using industry standard hardware. Built-in resilience keeps the database online. Deploy on-premises, as-a-service or a hybrid of both. **Fast Query Response** Discover new customer segments, overlaps or propensity to buy events as it happens using historical and real-time sources with standard SQL. ### Real-Time Optimization Deliver a proactive more personalized ad targeting service with real-time segmentation, attribution, and conversion. ### Customer Segmentation Deliver tighter targeting with overlap analysis using converged real-time data and historical analysis in a single SQL accessible database. ## Millisecond Query Response to 1000s of Users Real-time analytics at scale “On the old system, we couldn’t bring in too much data. We had a large enterprise account sign up as a client, bringing a million web views a day. We had to add smart filtering to ensure it wouldn’t make our database explode. With SingleStore, I don’t have that concern anymore.” Keith Perhac Founder and CEO, SegMetrics “On the old system, we couldn’t bring in too much data. We had a large enterprise account sign up as a client, bringing a million web views a day. We had to add smart filtering to ensure it wouldn’t make our database explode. With SingleStore, I don’t have that concern anymore.” ## High Tech resources Case Study SegMetrics Quantifies Customer Journey Touchpoint Values with Time Series Analytics Case Study Case Study: Customer Saves $60K per Month on Move from AWS RDS and Druid.io to SingleStore Case Study Boost Conversions with Overlap Ad Targeting ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/saas/education-technology/ # SingleStore for EdTech: Real-Time Learning Analytics SingleStore powers EdTech platforms with live analytics and AI across students, content and outcomes, so learning paths adapt as students work. # **Real-Time Learning Intelligence** Power adaptive learning platforms with a high-performance, distributed SQL database built for live analytics, and AI-driven education experiences with instant insight across students, content, and outcomes. **Trusted by****data-driven education platforms** ## Always-on learning expectations Education has moved beyond scheduled sessions and static content. Learners now expect platforms to respond instantly to their progress, behavior, and context - requiring systems that operate continuously, not in batches. ## **Data-intensive pedagogy** Modern learning models depend on granular behavioral data, assessments, and content interactions. When insights lag behind learner activity, platforms lose the ability to intervene, personalize, or improve outcomes in real time. ## AI enters the classroom AI-assisted tutoring, automated grading, and learning agents are becoming core capabilities. These systems demand immediate access to live, trustworthy data to guide learners accurately and responsibly. ## Why traditional architectures break under EdTech platform requirements and what's needed **Stale learner insight** Learning analytics often lag minutes or hours behind activity, limiting timely feedback and intervention. **What's needed:** Real-time access to learner activity and performance as interactions occur. **Scale breaks engagement** Peak usage during exams, live classes, or global cohorts strains platforms and degrades experience. **What's needed:**Consistent performance under extreme concurrency peaks from thousands of simultaneous learners and educators. **Disconnected learning data** Operational systems, analytics, and AI workflows rely on copied or fragmented datasets. **What's needed:**A unified database serving operational, analytical, and AI workloads together. **Limited AI readiness** AI tutors and recommendation engines operate on delayed or partial context. **What's needed:**An AI-ready database that grounds models and agents in live, governed learning data. **Rising security and compliance pressure** As platforms scale, duplicated data and expanding access increase exposure, audit burden, and regulatory risk. **What's needed:** A unified, enterprise-grade data foundation with strong access controls, auditability, and consistent security across all workloads. ## The performance engine for real-time learning experiences **Unified learning data engine** SingleStore brings learner interactions, analytics, and AI together in one real-time database - eliminating delays between activity, insight, and action. **Real-time at educational scale** From live classrooms to global MOOCs, SingleStore maintains predictable performance as learners, instructors, and AI agents scale to extreme concurrency levels. **Operational + analytical together** Learning platforms no longer choose between transactional reliability and deep analytics - both operate on the same live data foundation. **AI-ready by design** SingleStore enables AI tutors, recommendation engines, and assessment automation to reason on current learner context, not stale snapshots. **Enterprise-grade security + governance** Built-in consistency and security support FERPA, GDPR, and institutional data governance requirements. ## What you can build on SingleStore ### **Adaptive learning paths** Platforms track learner behaviour continuously, but delayed analytics limit meaningful personalisation. With real-time insight across learners and cohorts, learning paths adjust as progress unfolds, supporting stronger engagement, mastery, and completion. ### **AI tutoring & assistants** AI tutors need more than a single learner snapshot. SingleStore enables agents to reason on live, governed learning data across sessions, content, and learning groups, helping guidance stay relevant as behaviour shifts in real time. ### **Real-time learning analytics** Educators and administrators gain visibility not just into individuals, but into patterns across classes or regions, powered by real-time analysis of student interaction and assessment data. Live analysis surfaces trends such as difficult content areas, unusual performance spikes, or emerging risks while learning is still in progress. ### **Assessment & grading automation** High-volume assessments create spikes in data access and analysis. SingleStore supports instant scoring and feedback while enabling broader insight, such as identifying unusually challenging questions or detecting anomalies across assessment environments. ### **Learner engagement monitoring** Behavioural signals across clicks, sessions, and participation are analysed continuously. Platforms can compare engagement across cohorts to detect disengagement patterns, irregular behaviour, or potential integrity concerns early, supporting timely human intervention. ## Real world outcomes ## **GoGuardian** ### **Turn millions of daily events into sub-second analytics at scale** GoGuardian’s education technology platform **serves over 18 million students**, **10,000+ schools**, and **500,000+ educators**, handling vast volumes of real-time learning events daily. - **2.49 M events per minute**  processed on average. - **Write throughput:**  ~750,000 ops/second. - **Read performance:**  dynamic queries with < 30 ms latency. - **Operational savings:**  ~$30,000 monthly compared with legacy stacks. *“Now that everything is up and running smoothly, I’m both proud of what we have accomplished and thankful for the product and the support we have received … I have more confidence than ever before in our infrastructure and its ability to handle strenuous loads during peak hours.”* — GoGuardian Engineering Team ## Strategic advantages for EdTech platforms **Faster learning outcomes** Immediate insight enables timely intervention, personalization, and feedback that directly improve learner success. **Platform simplification = cost savings** A single real-time data foundation reduces architectural sprawl and operational overhead. **Confident scalability** Platforms grow globally without sacrificing performance during critical learning moments. **AI-ready education** Deploy AI responsibly with live, governed educational data. ## Build real-time, AI-driven learning experiences Work with our specialists to unlock performance, simplicity, and scale in your EdTech platform. ## Frequently Asked Questions ### What challenges do education technology platforms face with modern data workloads? ### How does SingleStore support real-time education technology applications? ### Why is real-time data processing important in digital learning platforms? ### How does SingleStore scale for large education technology environments? ### How can education technology platforms use machine learning with real-time data? ### What types of data can education technology platforms store and analyze in SingleStore? ### How does a unified data architecture benefit edtech platforms? ### How does SingleStore improve data accessibility for educators and administrators? --- Source: https://www.singlestore.com/solutions/internet-of-things/ # SingleStore for IoT: Real-Time Sensor Data Analytics SingleStore ingests streaming sensor and device data and runs concurrent analytics on it as it arrives, so IoT applications act on current readings. # Real-Time Solutions for the Internet of Things ## Why SingleStore for IoT Analytics? As always-on devices and sensors proliferate, their data must be ingested and actionable in the moment. Their infrastructure behind each IoT application will be powered by a real-time database. SingleStore supports fast ingest and concurrent analytics for sensor systems, delivering instant actionable insights. **Streaming Data Ingest and Store** Collect and store multiple streams of data into a relational format for real-time or historical analysis, without relying on slow batch processing. **Proven Compatibility** ANSI SQL compliant with full data persistence improves data accuracy that works with existing business intelligence and middleware tools. **Unlimited Scale and Highly Available**Shared nothing architecture for scale out or up using industry standard hardware. Built-in resilience keeps the database online. Deploy on-premises, as-a-service or a hybrid of both. **Fast Query Response** Instantly discover anomalies or predict events in the moment with memory optimized standard SQL. ### Predictive Maintenance Predictive Maintenance Sense and respond to costly maintenance events before they happen. Ingest, analyze and alert with sub-second response. ### Connected Vehicles Manage fleet operations in real time combining live and historical data for improved decision accuracy and planning. ## Lightning Fast Real-time Analytics on Large Datasets Comcast can proactively diagnose potential issues from real-time intelligence and deliver the best possible video experience. “We’re now able to aggregate statistics across the entire US as well as glue on to complex streams for complex analysis. We like to say we gave the gift [of SingleStore] to a lot of groups at Comcast.” Christopher Lintz Senior Principal Architect at Comcast ## IoT resources Webinar Creating an IoT Kafka Pipeline in Under 5 Minutes Case Study Armis Saves 70% of Data Pipeline Cost with SingleStore and AWS, Grows Valuation to $3.4B Blog IoT at Global Scale: PowerStream Wind Farm Analytics with Spark Webinar Accelerating Real-time IoT Analytics with IBM Cognos & SingleStore Whitepaper Accelerate IoT Platforms with SingleStore ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/telco-and-media/ # SingleStore for Media and Communications Analytics SingleStore collects and analyzes data from millions of devices and users in real time, for advertising analytics and media monitoring dashboards. # SingleStore is built for Media and Communications SingleStore collects and analyzes data from millions of devices and users in real time, making it the ideal database for digital media and communications platforms. ## Advertising Analytics Sub-second refresh of dashboards with live streaming content In today’s data-driven world advertisers need to know their advertising performance to respond to anomalies in real time. Live streaming content and always connected devices force media companies to continuously monitor customer engagement and how that behavior is affected by ads. Customers have built SingleStore solutions to serve fast scalable analytics with fine grain query control for deeper insights to optimize and manage thousands of concurrent advertisers. ### Sophisticated SQL Easily build sophisticated queries with ANSI SQL and integrate with custom applications with robust connectivity APIs ### Scale to Thousands of End Users Reliably scale sophisticated analytics to thousands of users on a highly available operational platform ### Single Database System Simplify complex data architectures by storing and live and historical data in a single database system ## Using SingleStore to Query Hundreds of Billions of Rows in a Dashboard Pandora delivers real-time advertising performance analytics at scale “SingleStore offered the right mix of features, performance, and flexibility to address the problems we wanted to solve…our usage of SingleStore has expanded beyond our initial Ads dashboard project.” Kaan Erdener Software Engineer, Pandora ## Media Monitoring and Diagnostics Sub-second refresh of dashboards with live streaming content Video streaming requires excellent service delivery to meet customer expectations and remain competitive. Video delivery requires continuous monitoring and maintenance to respond to problems before customers notice. This requires media delivery companies to have real-time diagnostics on the quality of the video stream and the ability to analyze the telemetry to quickly identify and predict problems. Customers use SingleStore to track real-time analytics on video stream data for operational insights on user behavior and media performance. The data enables proactive service response to customers and reduce operational costs. ### Single Platform Support real-time data ingestion while delivering live query simultaneously with a single integrated platform ### Industry Standard Hardware Deliver scalable analytics with distributed architecture on industry standard hardware ### Operational 24/7 Highly available platform delivers reliable performance for 24/7 operations Test drive it today ## Experience the full power of SingleStore — without a payment commitment ## Lightning Fast Real-time Analytics on Large Datasets Comcast can proactively diagnose potential issues from real-time intelligence and deliver the best possible video experience. “We’re now able to aggregate statistics across the entire US as well as glue on to complex streams for complex analysis. We like to say we gave the gift [of SingleStore] to a lot of groups at Comcast.” Christopher Lintz Senior Principal Architect at Comcast ## Personalization Deliver personalized content at the right time to the right segment at scale Content personalization can improve customer interactions and ultimately drive revenue if the material is accurate and available at the point of engagement. Delivering personalized content at scale can create a series of challenges for legacy data architectures where accuracy and analytics must work together. Customers use SingleStore for delivering personalized ads that improves customer engagement and generates new revenue streams. The SingleStore real-time data warehouse delivers accurate results on financial data along with high throughput performance to meet millions of user interactions. ### Real-Time Ingest and Query Real-time data ingestion with SQL access ensures calculations are performed on latest events ### MySQL Wire Protocol Interoperate with existing applications and data platforms leveraging the MySQL Wire Protocol and connectivity APIs ### Single Integrated Platform Perform transactions and analytics simultaneously on a integrated platform ## Media resources eBook The Path to Predictive Analytics and Machine Learning Solution Brief Industry Brief - SingleStore for Media and Telecommunication Blog Taming the Wild West: SingleStore Fast Analytics for Streaming Media ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/modernize/ # Replace MySQL or PostgreSQL With SingleStore Replace MySQL or PostgreSQL with SingleStore when your app outgrows a single node: scale out, speed up queries and migrate with step-by-step guides. # Modernize for Scale Break free from legacy databases ## **Replace single-node databases** You built your app on MySQL or PostgreSQL, but with user growth, performance has deteriorated. You can’t scale out and offloading queries to other databases is costly. Replacing single-node databases with SingleStore will speed up your application and you'll be able to scale horizontally, boost productivity and reduce costs. It’s one platform for transactions, analytics, search and more. [Why power your SaaS Applications with SingleStore ->](https://www.singlestore.com/solutions/saas-applications/) ## **Migrations from MySQL are easy** With its wire compatibility for MySQL (and Maria DB), SingleStore is a drop-in replacement for MySQL. **Steps** - Sign up for [SingleStore Cloud Trial](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Fmodernize%2F) - [Load data](https://docs.singlestore.com/cloud/load-data/load-data-with-pipelines/how-to-load-data-using-pipelines/load-data-from-mysql/) from MySQL to SingleStore using Change Data Capture. - Point your application to SingleStore - Test app functionality and performance (or [benchmark using TPC methodologies](https://github.com/memsql/benchmarks-tpc) ) - [Bonus]: Optimize database performance using [indexes and keys](https://docs.singlestore.com/cloud/create-a-database/understanding-keys-and-indexes-in-singlestore/) ### **Live performance comparison - MySQL Vs SingleStore** SingleStore demo ## How to migrate from MySQL® to SingleStore SingleStore follows MySQL wire protocol, making it easy to migrate any flavor of MySQL — giving you better data ingest, query latency high concurrency. ## Resources: Migrating from MySQL Webinar Supercharge Your MySQL Apps 100X at Scale with No Code Changes ## **Replace PostgreSQL® with SingleStore** **Steps** - Sign up for [SingleStore Cloud Trial](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Fmodernize%2F) - Export data from Postgres using the [pg_dump utility](https://www.postgresql.org/docs/current/app-pgdump.html) - Import data into SingleStore using [LOAD DATA](https://docs.singlestore.com/cloud/reference/sql-reference/data-manipulation-language-dml/load-data/) (for CSV files) or SingleStore Pipelines (for S3 buckets) - Point your application to SingleStore - Test app functionality and performance (or [benchmark using TPC methodologies](https://github.com/memsql/benchmarks-tpc) ) - [Bonus]: Optimize database performance using [indexes and keys](https://docs.singlestore.com/cloud/create-a-database/understanding-keys-and-indexes-in-singlestore/) ## Resources: Migrating from PostgreSQL Blog How to Migrate From PostgreSQL to SingleStore Case Study Arcules Optimizes Video Surveillance and Analytics to Scale Globally Blog Understanding PostgreSQL’s Data Fragmentation Problem, and How SingleStore Is Better ### **Why SingleStore for your SaaS Applications** SingleStore today powers over 150 highly performant customer-facing SaaS applications across diverse industry segments. With a scale-out architecture that offers blazing-fast ingestion, and support for transactional, analytical and AI capabilities in a single engine, SingleStore offers a modern unified data platform to power your SaaS applications. **Learn more about**[SingleStore for SaaS Applications](https://www.singlestore.com/solutions/saas-applications/) ## **Get started with SingleStore** **Try SingleStore now for free**Low-latency, high-performance vector and hybrid search[Try SingleStore Now](https://portal.singlestore.com/intention/cloud#UA.utm_ref=%2Fsolutions%2Fmodernize%2F) **SingleStore Spaces**Browse through a collection of quickstart modules and solve common problems in a few minutes with end-to-end applications using SingleStore.[Start with a Notebook template](https://www.singlestore.com/spaces/) “We had worked with other scalable databases, but we always ran into an issue that they were very good for either writing or reading, but not both. The other problem we ran into was cost. **The biggest reason we picked SingleStore came down to cost.**The other databases couldn’t perform the way we wanted them to cost-efficiently,” Benjamin Rowe Cloud and Security Architect, Arcules ## Start your SingleStore trial ### Explore more resources --- Source: https://www.singlestore.com/solutions/monitoring-and-anomaly-detection/ # SingleStore for Monitoring and Anomaly Detection SingleStore ingests machine, sensor and application data and analyzes it as it arrives, so teams detect anomalies and act while the data is current. # Monitor and Detect in Real Time ## Why SingleStore For Monitoring and Detecting in Real Time? Most organizations strive to keep up with the influx of data or to use it when it matters. Ingesting and analyzing machine, sensor or application data delivers more value when acted on in real time. SingleStore gives organizations the ability monitor and detect anomalies in rapidly changing data through its innovative real-time ingestion, database and analytics platform. **Real-Time Data Ingestion** Collect and store multiple streams of data in a relational format, without relying on slow batch ETL. **Ecosystem Compatibility** ANSI SQL compliant, built-in integrations with Apache Spark, Kafka and popular business intelligence tools like Tableau. **Fast Query Response** Discover anomalies or predict events as it happens using standard SQL complex advanced analytic queries. **Mixed Workload Analytics** Run analytic queries while you ingest data to get instant insights for real-time decision making. ### **Example applications** ### Operational Reports and Dashboards Improve reporting accuracy through live and historical data with real-time reports and dashboards. ### Data Warehouse Modernization Keep up with real time data demands with a modern, scalable, highly concurrent data warehouse platform. ### Location Analytics Track, analyze and forecast the location of assets, customers or devices in real time using built-in Geospatial functions. Queries that would time out completely under Elasticsearch are now processing in less than 10 seconds with SingleStore, and some clock in under 1.5 seconds Aviram Cohen Chief R&D Officer, Armis ## Monitoring resources GitHub Real-Time AI Using Kafka [Cybersecurity Anomaly Detection Demo] - Part1 eBook The Path to Predictive Analytics and Machine Learning ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/operational-analytics/ # Operational Analytics on Live Data With SingleStore SingleStore runs fast, scalable reporting and analytics on all your operational data, so teams monitor operations and act on live data as it changes. # Operational Analytics Deliver faultless, ultra-fast insights across applications and analytics ## Get Real-Time Insights & Experiences through Operational Analytics Enable continuous monitoring and discovery of insights to make faster, more informed decisions, improve customer experiences, and operations. SingleStore delivers fast, scalable reporting and analytics across all of your operational data; including streaming, real-time, and historical data. ## Low-Latency Event-to-Insight Performance Deliver against the toughest service-level-agreements using distributed lock-free ingestion and real-time query processing - **Streaming Ingest** Eliminates costly data integration tools through built-in batch and real-time data pipelines - **Columnar Powered Analytics** Fast petabyte scale analytics with columnstore compression - **Compiled Queries** Repeat queries are compiled into low-level machine code to deliver record-breaking response for analytic queries ## Unbeatable Scale Elastic scale-out architecture delivers consistent predictable response under high ingest and user concurrency - **Distributed SQL** Balance data and queries across a cluster of cloud instances or commodity hardware for maximum performance - **Resource Governer** Prevent unintended queries from consuming all available query execution memory in the cluster - **Memory Optimized** Ultra-low latency for scalable transactions and analytics ## Built for the Enterprise Fault-tolerant with military-grade security to support mission-critical applications and sensitive data environments - **Full Encyrption and RBAC** Efficiently manage simple or robust security configurations by user role and group while maintaining maximum performance - **Audit Trail** Database logging writes all activities to a secure external location to support information security tasks - **Strict Mode** Prevent permissive data access from rogue database administrators using strict security configuration control to protect against insider threats ## Drop-in Compatibility Plug-in directly with existing technologies and skills with support for standard SQL, BI and modern data tools like Spark and Kafka - **Ingest** Streaming inputs include: Apache Kafka and Spark Database inputs include: S3, HDFS, Files - **Analyze** Perform ad hoc analysis with business intelligence tools like Tableau, Looker, Microstrategy and more ## Operational Analytics Architecture ### **SingleStore Accelerates Operational Analytics** SingleStore is the ideal all-in-one database for operational analytics that require fast data ingest, high performance queries and elastic scaling with familiar relational SQL. ## Example Applications Wealth Management DashboardConsolidate multiple application sources using Kafka for a unified event streaming service into SingleStore to power a complete portfolio view real-time and historical data with interactive query response[Watch Financial Solution Webinar](https://www.singlestore.com/resources/webinar-data-innovation-trends-financial-services-2019/) Millions of Data Points Monitored in Real-TimeScale data infrastructure to deliver real-time monitoring and analysis of your most precious assets[Read Case Study on Wag](https://www.singlestore.com/blog/wag-labs-case-study/) Predictive MaintenanceSense and respond to costly maintenance events before they happen. Ingest, analyze and alert with sub-second response.[Watch Windfarm Simulation](https://memsql.wistia.com/medias/3abstf8ko7) ## Global leaders trust SingleStore Bringing real-time to the real world ## Operational analytics resources Blog SingleStore v. Clickhouse: Benchmarking Performance for Modern Analytics Blog Why Real-Time Analytics Is the Next Battleground for Revenue Operations Platforms Whitepaper Solution Guide for Real-Time Apps Webinar Choosing the Right Database for Time Series Data Webinar The Impact of Operational Analytics on Databases Blog Operational Analytics for Your Database Blog Beginner's Guide to HTAP Database Blog The Need for Operational Analytics Blog The Emergence of Operational Data Warehouses ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/retail-and-commerce/ # SingleStore for Retail and Ecommerce Analytics Retail and ecommerce teams use SingleStore to ingest streams of customer and operations data and analyze them in real time against their full history. # Retail and Ecommerce Solutions ## Why SingleStore For Retail and Ecommerce? Consumer data holds opportunities to optimize customer interactions. To capture these moments, retailers rely on databases that can simultaneously monitor real-time operations and provide instant analytics with historical data. **Streaming Data Ingest and Store** Collect and store multiple streams of data into a relational format for real-time or historical analysis, without relying on slow batch processing. **Proven Compatibility** ANSI SQL compliant with full data persistence improves data accuracy that works with existing business intelligence and middleware tools. **Fast Query Response** Discover new customer segments, overlaps or propensity to buy events as it happens using historical and real-time sources with standard SQL. **Geospatial Index** Analyze customer or asset location with precision and speed for targeting and tracking in a single scalable database. ### Example applications ### Personalized Recommendations Target customers in the moment with personalized experiences using real-time segmentation, attribution, and smart recommendations. ### Customer Segmentation Drive sales with customer overlap analysis using converged real-time data and historical analysis in a single SQL accessible database. ### Supply Chain Optimization Deliver real-time visibility, optimization and forecasting by managing point of sale, product inventory and logistic data in a single scalable database. ### **Customer stories** “SingleStore has seriously decreased our infrastructure complexity, allowing us to move faster and with more confidence. This all started with search, but now it's far bigger than that. By implementing SingleStore, we get to impact everything.” ## Retail resources Blog Webinar Recap: Real-Time Retail With IBM and SingleStore Case Study publica.la Speeds Search 70X, Processes Millions of Rows per Second, Lowers TCO Webinar Leveraging Smart Analytics to Power Responsive Retail Case Study Top 10 Retailer is Saving Millions, and Solving Billions in Data Issues, with SingleStore ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/solutions/saas-applications/ # SingleStore for SaaS Applications and In-App Analytics SingleStore runs transactions and analytics in one database, so SaaS apps serve fast, interactive in-app analytics to thousands of customers at once. # SaaS Applications Drive interactive experiences for every customer, every time Modern customer-facing SaaS apps need to deliver fast, interactive experiences while scaling easily to serve thousands — or hundreds of thousands — of users. So, how do you deliver analytics at scale and meet the demands of a modern real-time SaaS application? It starts with the right database. ## The challenge with current SaaS application architectures Today, customers have to power their SaaS applications by “stitching” together a variety of single-purpose and specialty data engines — one or more transactional (OLTP) databases, specialty data engines and a series of analytical databases duct-taped together to power applications. Unfortunately, this leads to highly inefficient and complex architectures, unnecessary data movement and ETL — all of which drive up data latency and operating costs. The result? Applications struggle to deliver fast analytics on fresh data, running into performance and scalability bottlenecks. ## SingleStore for SaaS applications SingleStore offers a modern, unified scale-out database that provides blazing-fast transactional, analytical and AI capabilities in a single engine —  without data movement — to power your SaaS applications. That means you can say goodbye to multiple specialized databases. With SingleStore you get the ACID compliance, scalability and fast writes of a transactional database together with the ultra-fast ingestion, reads, aggregations and millisecond query latencies of an analytics engine. This enables SingleStore to run writes and analytics for your SaaS apps in one engine at a fraction of the cost compared to your legacy architecture — and has an enormous impact on your end-user experience, scalability and revenue recognition goals. Learn how to [supercharge your SaaS applications with SingleStore](https://www.singlestore.com/resources/solution-briefs-supercharge-your-saas-applications/). ## More than 100 leading SaaS providers run on SingleStore **Millisecond query latency** High-throughput parallel streaming ingestion together with super low-latency queries to power modern applications **30-60% lower costs** Better price-performance and overall lower TCO of up to 60% with SingleStore compared to legacy infrastructure **No more ETL** Power analytics with applications with one unified engine, eliminating unnecessary data movement and ETL **Elastic scalability** With a horizontal distributed scale-out architecture, you can scale up or scale out horizontally as your business grows ## SingleStore key capabilities for SaaS apps When it comes to transacting, analyzing and contextualizing data in real time, your underlying data engine makes all the difference. SingleStore serves as the ideal data platform to power applications and businesses across fintech, adtech, martech, security tech, gaming and more. ### Unified, scalable data platform In-memory rowstore, together with a disk-based columnstore [(Universal Storage)](https://www.singlestore.com/blog/memsql-singlestore-then-there-was-one/) in the [same engine](https://www.youtube.com/watch?v=ZKaZ89-Yijg) to drive fast applications. #### SingleStore Pipelines Don’t wait for your insights; ingest up to millions of events/second using [Pipelines](https://docs.singlestore.com/cloud/load-data/load-data-with-pipelines/), with immediate availability. #### Unlimited elasticity [Scale your applications](https://docs.singlestore.com/db/v7.6/manage-data/unlimited-data-storage/) with a distributed scale-out architecture and [bottomless](https://www.singlestore.com/blog/the-future-is-bottomless/) storage. #### Multi-model Support [multiple data types](https://docs.singlestore.com/cloud/reference/sql-reference/data-types/) ([JSON](https://docs.singlestore.com/cloud/create-a-database/using-json/), time-series, geospatial, full-text search, relational, vectors) and run in [multi-cloud](https://www.singlestore.com/pricing/) or hybrid clouds. #### Best-in-class resiliency Power enterprise apps including HA, DR, [limitless PITR](https://www.singlestore.com/blog/point-in-time-recovery-whats-in-it-for-dbas-execs-developers/) and multi-AZ failover. #### Extensible APIs [MySQL®](https://docs.singlestore.com/cloud/connect-to-singlestore/connect-with-mysql/connect-with-mysql-client/) and wire protocol compatibility, [MongoDB® Pipelines](https://docs.singlestore.com/cloud/load-data/data-sources/replicate-data-from-mongodb/) and connectors to Spark, Kafka, dbt and more. SingleStore demo ## How to migrate from MySQL® to SingleStore SingleStore follows MySQL wire protocol, making it easy to migrate any flavor of MySQL — giving you better data ingest, query latency high concurrency. ## Performance benchmarks SingleStore is a unified database that delivers best-in-class performance for both OLTP and OLAP workloads. SingleStore performs as well as specialized operational databases and data warehouses based on our benchmark derived from TPC-C and TPC-H. Don't believe us? Check out our [internal benchmarks](https://www.singlestore.com/blog/tpc-benchmarking-results/) — or better yet, here are some real-life examples our customers ran as part of their selection process. TPC benchmarking resultsOur results demonstrate that SingleStore achieves best-in-class performance on both TPC-H and TPC-C industry-standard OLAP and OLTP benchmarks.[Learn more](https://www.singlestore.com/blog/tpc-benchmarking-results/) SingleStore vs. Microsoft Azure SQLDiscover how dailyVest powers 401(k) plans with SingleStore Helios and improves application performance by 30%.[Read the case study](https://www.singlestore.com/blog/how-dailyvest-powers-401ks-with-singlestore-managed-service-and-improves-application-performance/) SingleStore vs. Snowflake® + MariaDB®Learn how Anuvu simplified and consolidated databases, cut total ownership costs by 10x and improved overall performance by over 20x.[Read the case study](https://www.singlestore.com/blog/webinar-anuvu-speed-tests-mariadb-snowflake-singlestoredb/) SingleStore has seriously decreased our infrastructure complexity, allowing us to move faster and with more confidence. This all started with search, but now it's far bigger than that. By implementing SingleStore, we get to impact everything. Franco Gilio Co-Founder and CTO, publica.la ## Leading SaaS players and Tier-1 enterprises choose SingleStore ## Additional resources Blog How-to Guide: Migrate from RDS MySQL to SingleStore with Minimal Downtime Webinar How to Migrate 400M Rows from MySQL with Zero Downtime Blog How to Migrate From PostgreSQL to SingleStore --- Source: https://www.singlestore.com/solutions/saas/adtech/ # SingleStore for AdTech: Real-Time Ad Decisions SingleStore lets AdTech platforms make bidding, targeting, pacing and fraud decisions in milliseconds, on live campaign data inside every auction. # **Real-Time Ad Decisions, Optimized for Every Impression** SingleStore enables AdTech platforms to optimize bidding, targeting, pacing, and fraud-prevention decisions in milliseconds - backed by a real-time database that drives  every auction and budget decision with live data and AI precision. Trusted by AdTech Leaders ## **The millisecond economy** Programmatic advertising happens in ultra-tight auction windows, where bid decisions, frequency controls, and fraud checks must execute in just tens of milliseconds. As models become more complex, even small increases in latency directly reduce win rates, yield, and advertiser ROI. ## **Fragmented data slows optimization** Audience graphs, bid streams, impression logs, and conversion signals are scattered across transactional systems, data lakes, and warehouses. Every data movement introduces delay and inconsistencies, reducing real-time optimization and making cross-channel attribution less reliable. ## **AI moves from insight to action** Machine learning is no longer just offline reporting - it now drives live bid shading, creative selection, and fraud scoring. As AI integrates deeper  into the decision loop, platforms require immediate access to fresh, governed data at scale, rather than batch-refreshed snapshots. ## Why traditional architectures break under real-time ad requirements + what's needed **Bid latency reduces win rate and yield** When data must travel between transactional engines and analytics platforms, auctions exceed SLA windows, lowering win probability and limiting margin optimization. **What’s needed:** A unified platform where ingest, analysis, and decisioning happen on the same live dataset in milliseconds. Scaling concurrency without performance loss Millions of auctions per second and simultaneous advertiser queries overwhelm isolated systems built for either writes or analytics, not both. **What’s needed:** A database built for consistent high concurrency across operational and analytical workloads without performance cliffs. **Stale data weakens targeting accuracy** Audience updates, budget pacing, and fraud signals fall behind live events when pipelines rely on ETL and batch refreshes. **What’s needed:** Continuous ingest and immediate queryability so every bid decision reflects current behavior and budget state. Fragmented AI workflows raise operational risk Maintaining separate stores for events, features, and vector search creates duplication and governance gaps, making AI deployment in production more complex. **What’s needed:** A single, AI-ready database supporting relational, semi-structured, and vector data under unified governance. **Infrastructure sprawl raises cost and complexity** Running multiple engines for OLTP, OLAP, caching, and AI adds operational overhead and increases synchronization risk. **What’s needed:** Consolidation into a single data platform capable of handling transactional, analytical, and AI-driven workloads simultaneously. ## The performance engine for real-time adtech platforms **Unified real-time engine** SingleStore unifies transactions, analytics, and AI in a single engine, enabling bid processing, reporting, and model scoring to run on the same live data – without any movement or delay. **Continuous ingest and instant analytics** SingleStore unifies transactions, analytics, and AI in a single engine, enabling bid processing, reporting, and model scoring to run on the same live data – without any movement or delay. Extreme concurrency at scale Designed to handle millions of concurrent bid evaluations and user queries, SingleStore maintains predictable performance even during peak auction traffic. ACID-compliant financial integrity Accurate budget tracking, billing, and revenue recognition depend on strict transactional correctness, delivered by an ACID-compliant distributed database, even in high-throughput environments. **AI-ready foundation** Native support for relational, JSON, time-series, and vector data empowers AI-driven bidding, similarity targeting, and agent-based optimization – all without requiring separate systems. ## What you can build with SingleStore ### **Real-time bid optimization** In programmatic auctions, platforms must evaluate user context, campaign constraints, and model outputs within strict time budgets. SingleStore processes live bid streams and scoring logic simultaneously, enabling dynamic bid shading and an optimized win-rate-to-margin balance at scale. ### **Audience graph & identity resolution** Identity graphs ingest massive volumes of behavioral and device data. By unifying transactional updates with analytical joins, SingleStore keeps audience segments up to date, improving targeting accuracy while supporting advertiser queries and reporting without any performance trade-offs. ### **Budget pacing & revenue tracking** Campaign budgets change continuously across channels and regions. SingleStore ensures accurate, real-time pacing calculations and financial tracking, while powering dashboards and optimization algorithms from the same trusted dataset. ### **Ad fraud & traffic quality monitoring** Fraud detection requires correlating live impression streams with behavioral patterns and historical anomalies. SingleStore queries and correlates events in milliseconds, enabling both rule-based and model-driven scoring without slowing auction pipelines. ### **Cross-channel attribution & ROAS** Advertisers demand precise attribution across web, mobile, CTV, and emerging channels. SingleStore unifies impression, click, and conversion data into a continuously updated attribution model, minimizing reconciliation lag and enhancing campaign transparency. ### **AI-powered creative & agentic optimization** Next-generation AdTech platforms deploy AI agents that autonomously adjust bids, creatives, and targeting. SingleStore provides live context - events, budgets, segments, and vectors - enabling AI agents to reason and act without relying on stale data. ## Real world outcomes ## **Skai** ### **Scalable real-time advertising infrastructure** Skai is a leading omnichannel advertising platform serving global brands and agencies across search, social, retail media, and mobile. As growth accelerated, legacy infrastructure limited scalability and drove up hardware costs. Skai chose SingleStore on AWS to power real-time analytics while simplifying operations and reducing infrastructure overhead. **Key Impact Metrics** - **50%** reduction in overall hardware requirements - **80%** reduction in in-memory data usage - **45%** of workloads achieved significantly faster data access - Reduced servers from ~450 to ~210 - Enabled smoother growth and faster innovation *“One of the most impactful changes has been our ability to cut overall hardware requirements by 50 percent, which has translated into substantial savings.”* - **Ziv Fridfertig, Data Infrastructure Manager, Skai** ## **PYLER** ### **Petabyte-scale real-time brand safety & contextual intelligence** - Processes **petabytes** of data with continuous loading ( **100 GB** /day) - Handles **10,000+ queries per minute** concurrently - **Faster data ingestion** - **>100× reduction in query latency** - **Sub-2-second performance** for interactive dashboards *“With SingleStore, careful shard and sort key design delivers excellent query performance along with outstanding ingestion speed… freeing engineers to focus on delivering new features.”*- **Dongchan Park, VP of Engineering, PYLER** ## Strategic advantages for your industry **Higher yield** Real-time optimization enhances bid precision, boosts win rates, and maximizes margins across programmatic channels. **Faster innovation** A unified platform speeds the deployment of new AI models, targeting strategies, and products without introducing architectural sprawl. **AI-ready monetization** Deploy AI-driven bidding and agentic optimization with confidence, powered by live, governed data. **Lower infrastructure cost** Consolidating transactional, analytical, and AI workloads eliminates system duplication and reduces operational overhead. **Scalable growth** Handle increasing traffic, new formats like CTV, and rising advertiser demand without degrading performance. ## **Build the Next Generation of AdTech Performance** Unify transactions, analytics, and AI to drive real-time bidding, targeting, and optimization at scale. --- Source: https://www.singlestore.com/solutions/saas/marketing-technology/ # SingleStore for MarTech: Real-Time Customer Data SingleStore keeps customer and campaign data, analytics and AI in one real-time database, so MarTech platforms personalize and segment as customers act. # **Real-Time Customer Intelligence That Scales** Consolidate customer and campaign execution data, analytics, and AI in a single real-time platform, enabling your MarTech platform to deliver instant personalization, continuous segmentation, and reliable performance at scale. Trusted by data-intensive marketing technology platforms ## Bridging the real-time expectation gap Today’s buyers expect instant personalization the moment they click, open, or browse. Batch segmentation and delayed profile updates lead to inconsistent experiences, lower conversions, and increased churn. As AI-driven engagement becomes the norm, real-time context is no longer optional - it’s essential. ## Fragmented customer data is holding back growth MarTech platforms collect events from web, mobile, CRM, product telemetry, and third-party sources. When this data is scattered across operational stores, warehouses, caches, and AI pipelines, latency and inconsistencies erode trust in segments, scores, and campaign triggers. ## AI is moving from insight to action Generative AI, next-best-action engines, and autonomous campaign agents are shifting from experiments into production. These systems need live behavioral context and high concurrency access. Without a unified data layer, AI becomes disconnected from operational reality and is hard to scale safely. ## Why traditional architectures break at scale and what's needed Profile updates can't keep up with engagement Customer events stream in continuously, yet profile enrichment still relies on pipelines and batch aggregation. This lag reduces personalization accuracy and campaign timing effectiveness. **What’s needed:** Continuous ingestion and instant query access to behavioral, transactional, and profile data in a single real-time system. Segmentation struggles under load As customer bases grow to millions of profiles and simultaneous campaign queries, traditional databases and warehouses struggle with concurrency and mixed workloads, causing timeouts and slow performance. **What’s needed:** A unified engine that handles thousands of concurrent analytical and operational queries without any performance drop. AI fails without fresh data Feature stores, vector databases, and analytics systems often work off copied datasets, creating latency, governance headaches, and misalignment  between AI outputs and production systems. **What’s needed:** An AI-ready data foundation where models, vectors, and operational data coexist with full transactional consistency. Operational and analytical systems don't align Campaign triggers, reporting dashboards, and product analytics often run on separate systems, leading to mismatched metrics and reconciliation work across teams. **What’s needed:** A single platform that supports real-time operational workloads and deep analytics on the same data, eliminating ETL-driven drift. Governance and multi-tenant security gets complicated SaaS platforms must enforce strict tenant isolation, ensure auditability, and maintain strong data governance – all while supporting rapid customer growth and global compliance. **What’s needed:** Built-in security, fine-grained access control, and reliable multi-tenant performance at scale. ## The unified engine for real-time MarTech platforms A single data platform to power all SaaS workloads SingleStore combines transactions, analytics, and AI in one distributed engine, enabling MarTech platforms to manage customer profiles, segmentation, campaign triggers, and reporting without moving data between systems. Real-time ingest and analytics in one system Continuous event ingestion and complex analytical queries run on the same dataset, enabling instant profile updates and live campaign activation without pipeline delays. High concurrency performance at multi-tenant scale SingleStore handles thousands of simultaneous queries across tenants, dashboards, APIs, and AI services - ensuring reliable performance during peak campaign launches and seasonal spikes. ACID guarantees for reliable customer data Full transactional guarantees keep profile updates, campaign states, and attribution records accurate and consistent across distributed workloads. An AI-ready foundation for personalized experiences Native support for relational, semi-structured, and vector data enables AI-driven segmentation, recommendations, and autonomous workflows to act directly on live customer context. Enterprise-grade security and governance you can trust Fine-grained access controls and workload isolation help SaaS vendors achieve global compliance while ensuring predictable performance across all tenants. ## What you can build with SingleStore ### **Real-time customer 360** MarTech platforms must unify behavioral, transactional, and CRM data into a single profile. The challenge is keeping that profile current as millions of events stream in. With a unified real-time data layer, profiles update instantly, enabling precise segmentation, personalization, and consistent experience across channels. ### **Instant segmentation + targeting** Campaign teams need dynamic segments that reflect what customers are doing right now. Batch pipelines cause delays and inconsistencies. A real-time system recalculates segments continuously, enabling campaigns to trigger in-session and drive higher engagement and conversion. ### **AI-driven personalization** Recommendation engines and next-best-action models need current behavioral context. When AI relies on stale extracts, results drift from reality. A unified, AI-ready database lets models and vectors work directly on live operational data, improving relevance and measurable lift. ### **High-concurrency campaign execution** Peak campaign events - product launches, promotions, seasonal spikes - create surges in queries, triggers, and dashboard activity. Platforms must handle operational writes and analytical reads simultaneously without performance degradation, preserving SLAs and maintaining customer trust. ### **Embedded analytics for customers** MarTech vendors are increasingly offering in-product dashboards and analytics to their customers. Running these workloads separately drives up cost and complexity. A unified engine supports embedded reporting on live data, delivering real-time insights without duplicating infrastructure. ## Real world outcomes ## Adobe ### **Reinventing customer-facing analytics at enterprise scale** Adobe’s Workfront platform powers complex marketing operations for thousands of global enterprises. As usage and data volumes surged, legacy reporting systems created unacceptable latency and cost pressure. Adobe needed interactive, customer-defined analytics at massive scale—without compromising speed or predictability. SingleStore became the high-performance engine behind that transformation. #### **Key Impact:** - **300×**  performance improvement (from minutes to seconds) - **<5 seconds ingestion**  and query target achieved (average <1 second) - **10+ billion rows** joined in complex queries - **70TB+**  of data across 250 tables - **20% annual data growth**  supported - **Lower total cost of ownership**  vs. prior architecture “SingleStore was the first breath of fresh air that wasn’t a compromise. The data gets in fast, and we can get it out fast—within seconds.” - Matt Newman, Principal Data Architect, Adobe ## Siteimprove ### Real-time marketing intelligence without the warehouse bottleneck Siteimprove delivers digital performance insights to marketing teams worldwide. As product capabilities expanded, their data layer became a constraint—limiting responsiveness and increasing operational complexity. They needed a single platform capable of powering real-time, customer-facing analytics without architectural sprawl. SingleStore enabled that shift. #### **Key Impact:** - **Significant reduction**  in dashboard query latency - Database consolidation  **simplified architecture** - **Lower infrastructure costs** - **Improved scalability**  for continued product growth - **Faster rollout**  of analytics-driven features “With SingleStore, we can deliver the speed our customers expect while keeping our architecture simple and scalable.” - Siteimprove Engineering Leadership ## 6Sense ### **Unifying AI + analytics + revenue intelligence at scale** 6sense processes massive volumes of behavioral, CRM, and advertising data to power AI-driven revenue insights for B2B teams. Rapid growth and expanding AI capabilities demanded a unified data layer that could support real-time user experiences and advanced machine learning workloads simultaneously. SingleStore became the consolidation point - bringing performance, scale, and AI readiness together. #### **Key Impact** - **Tens of terabytes**  managed with 27 months of retained history - **Consolidated** multiple legacy databases into one layer - **Improved query performance** across customer-facing UIs - **Reduced total cost of ownership** - **Powered AI features**  including real-time summaries and vector search *“We wanted all personas to use data from the same layer—with no discrepancy—and do it as fast as possible. SingleStore gave us that foundation.”*- **Premal Shah, Co-Founder & SVP Engineering and Infrastructure, 6sense** ## Strategic advantages for your industry **Faster revenue capture** Real-time personalization, segmentation, and AI-driven recommendations boosts conversion rates and campaign performance - turning live customer behavior into measurable revenue impact. **Platform differentiation** Millisecond responsiveness and always-current profiles positions your MarTech platform as performance-first, driving higher retention and stronger competitive advantage. Architectural simplification Consolidating operational, analytical, and AI workloads on a single engine reduces infrastructure sprawl, lowers integration overhead, and accelerates engineering velocity. **AI at production scale** A unified, real-time data foundation lets AI features move from experimentation to revenue-generating production capabilities with governance and reliability built in. ## **Build a Real-Time MarTech Platform That Scales** Discover how SingleStore enables SaaS vendors to power personalization, AI, and analytics on a single, unified data foundation. --- Source: https://www.singlestore.com/solutions/saas/salestech/ # SingleStore for SalesTech: Real-Time Revenue Analytics SingleStore runs millisecond analytics at high concurrency on live pipeline and engagement data, so SalesTech forecasts and copilots use current signals. # **Real-Time Revenue Intelligence** SingleStore enables SalesTech platforms to run millisecond analytics with high concurrency on AI-ready data, so every forecast, recommendation, and workflow continuously operates on the latest revenue insights. Trusted by leading SalesTech platforms ## **Revenue intelligence now operates in real time** Sales engagement, forecasting, and conversation intelligence platforms are no longer back-office reporting tools. Buyers expect live pipeline health, instant coaching insights, and in-the-moment recommendations. Batch analytics introduces delays between seller action and system insights, reducing platform value and delaying seller impact. ## AI operates directly within revenue workflows AI copilots, next-best-action engines, and automated deal inspection have become standard capabilities within modern SalesTech platforms. As AI moves from offline experimentation into production workflows, it must process and correlate fresh revenue insights in real-time. Stale or fragmented context reduces model accuracy and erodes user trust. ## **Concurrency and data volume are exploding** Modern SalesTech platforms ingest millions of daily events: emails, calls, meetings, CRM updates, product usage signals. Thousands of reps, managers, and AI agents access the same system concurrently, generating heavy simultaneous load. Architectures designed for isolated analytics struggle to sustain this dual pressure. ## Why traditional architectures break under real-time revenue intelligence requirements and what's needed Fragmented data creates latency and reduces trust Sales activity, CRM records, enrichment data, and usage telemetry often live in separate systems, forcing pipelines and synchronization jobs that introduce delays and inconsistencies. **What’s needed:** A unified data foundation where operational and analytical workloads share the same live dataset without replication or lag. Batch pipelines erode AI accuracy and trust Forecasting models and recommendation engines frequently depend on nightly refreshes, meaning AI decisions are grounded in yesterday’s pipeline reality. **What’s needed:** Continuous ingest and real-time queryability so AI models operate over current, governed revenue data at the moment of decision. Concurrency bottlenecks restrict platform scalability High seller concurrency combined with dashboard refreshes and AI workloads generates unpredictable latency spikes in traditional architectures. **What’s needed:** Linear scalability with consistent low-latency performance under thousands of concurrent users and AI agents. Fragmented systems drive cost and operational risk Maintaining transactional databases, warehouses, caches, and vector stores adds operational complexity and increases governance risk exposure. **What’s needed:** A single, ACID-compliant engine capable of handling transactions, analytics, and AI workloads together. Governance and auditability cannot be afterthoughts Revenue forecasts and performance metrics drive executive decision-making. Inconsistent data copies and siloed systems complicate auditing,compliance, and regulatory reporting. **What’s needed:** A secure, governed platform with role-based access controls and consistent data lineage across all workloads. ## The performance engine for real-time revenue intelligence **Unified transactions + analytics** SingleStore runs operational writes and analytical queries in a single data platform, eliminating ETL delays and enabling real-time revenue visibility across pipeline, activity, and engagement signals. **Rapid ingest at scale** Ingest millions of sales events per second and make them instantly queryable - powering live dashboards, scoring engines, and in-product AI workflows. **High concurrency without performance loss** Support thousands of sellers, managers, dashboards, and AI agents simultaneously querying with consistent millisecond response times. **ACID-correct + Enterprise ready** Maintain transactional correctness for revenue-critical workflows while delivering high-performance analytics at scale - no compromise between speed and safety. **AI-ready foundation** Run vector search, relational joins, and complex queries in a single engine so copilots, forecasting models, and next-best-action systems operate on live, unified data. ## What you can build with SingleStore ### **Real-time pipeline health** Sales leaders need immediate visibility into deal progression, risk signals, and coverage gaps. Traditional batch reporting introduces delays, leaving stale insights. With a unified real-time engine, pipeline metrics update instantly enabling proactive coaching, risk mitigation, and more accurate forecasting. ### **AI sales copilots** AI copilots assist reps with next-best actions, messaging suggestions, and deal strategy. They operate on live CRM data, engagement history, enrichment signals, and historical outcomes. A unified foundation ensures every AI recommendation reflects the latest context. ### **Conversation intelligence at scale** Call transcripts, sentiment analysis, keyword extraction, and deal scoring generate high-volume, semi-structured data. Real-time ingestion and analytics enable platforms to surface insights immediately after each call, improving coaching impact and customer experience. ### **Territory and capacity planning** Revenue operations teams continuously rebalance territories, quotas, and capacity based on live performance metrics. Combining transactional updates with analytical models in a single engine supports rapid scenario modeling and more accurate planning cycles. ### **Usage-based upsell signals** For SaaS SalesTech and adjacent platforms, product telemetry informs expansion opportunities. Continuous ingest and live analytics enable real-time identification of high-intent accounts and churn risk - driving proactive outreach. ## Real world outcomes ## ZoomInfo ### **Turning high-volume website data into real-time action** ZoomInfo’s **Websites** product delivers near real-time visitor intelligence at massive scale. As growth accelerated, BigQuery couldn’t keep up on latency, concurrency, or cost. The team needed a faster, scalable analytics engine that could support real-time updates and future expansion—without heavy rework. They chose SingleStore for distributed scale, fast ingestion, flexible cloud deployment, and lower total cost. ### **Key outcomes / impact** - **24× faster**  response times overall - **P95 list queries:**   **26s → ~1s**  (~25× faster) - **Dashboard queries:**   **~5s → sub-millisecond** - **~75% lower TCO**  (down to ~1/4 of projected cost) - Storage reduced from  **8.5 TB to 5 TB** - Ready to support  **6× growth** *“With BigQuery, our P95 latency was 26 seconds—and with SingleStore it came down to like 1 second.” -***Ganesh Srinivassingh, Engineering Manager, ZoomInfo** ## Outreach ### **Powering real-time revenue intelligence for modern sales teams** **Outreach** helps sellers execute structured outreach and analyze conversations in real time. As the platform expanded into conversation intelligence and AI-driven workflows, the team needed faster, simpler analytics to support drill-down insights from forecast to deal to call. SingleStore helped streamline the data layer, reduce latency, and deliver fresh insights instantly to revenue leaders. #### Key outcomes / impact - Analytics stack  **simplified** - **Fresh, instantaneous**  access to revenue data - Query latency reduced  **“tremendously”** - Enables deep drill-down from forecast → deal → conversation *“Being able to get data that’s fresh, that’s instantaneous—you reduced our query latency like tremendously.” -***Abhijit Mitra, CEO, Outreach** ## 6Sense ### **Unifying AI + analytics + revenue intelligence at scale** 6sense processes massive volumes of behavioral, CRM, and advertising data to power AI-driven revenue insights for B2B teams. Rapid growth and expanding AI capabilities demanded a unified data layer that could support real-time user experiences and advanced machine learning workloads simultaneously. SingleStore became the consolidation point - bringing performance, scale, and AI readiness together. #### **Key Impact** - **Tens of terabytes**  managed with 27 months of retained history - **Consolidated** multiple legacy databases into one layer - **Improved query performance** across customer-facing UIs - **Reduced total cost of ownership** - **Powered AI features**  including real-time summaries and vector search *“We wanted all personas to use data from the same layer—with no discrepancy—and do it as fast as possible. SingleStore gave us that foundation.”*- **Premal Shah, Co-Founder & SVP Engineering and Infrastructure, 6sense** ## Strategic advantages for your industry **Faster decisions** Move from delayed reporting to instant revenue visibility. Empower sellers and leaders to act on pipeline risk, opportunity signals, and AI insights as they emerge. **Platform differentiation** Deliver truly real-time dashboards, recommendations, and forecasting that competitors built on batch architectures cannot match. **Architectural simplification** Consolidate transactional databases, warehouses, and specialized AI stores into a unified, scalable platform - reducing cost and operational overhead. **AI monetization at scale** Confidently embed AI across your product portfolio, knowing models operate on fresh, consistent data under high concurrency. ## **Power the next generation of revenue platforms** Modern SalesTech demands live insight, embedded AI, and enterprise-scale performance. --- Source: https://www.singlestore.com/solutions/scale/ # SingleStore at Scale: Distributed SQL for Petabytes SingleStore is a distributed SQL database that scales out to thousands of machines on commodity hardware, from your first app to petabyte-scale workloads. # Scale Solving petabyte-scale problems for some of the world's largest companies. ## Distributed SQL database SingleStore powers your largest applications with ease. Our cloud deployment, [SingleStore Helios®](https://www.singlestore.com/product-overview/), is a distributed scale-out system which scales to thousands of machines on commodity hardware. Our platform is battle-tested – we’re used by some of the largest companies in the world to power their most critical applications. ## Built for huge scale SingleStore delivers [ultra-fast query execution](https://www.singlestore.com/platform/ultra-fast-queries/) and [real-time analytics](https://www.singlestore.com/solutions/real-time-analytics/), on millions of events per second. Queries aggregating hundreds of millions of rows deliver results with millisecond response times. Get high throughput, parallel, lock-free streaming ingestion on millions of events per second with [SingleStore Pipelines](https://www.singlestore.com/platform/data-integration/). ## Seamless scalability SingleStore is built to scale effortlessly, enabling you to handle growing data volumes and workloads without performance bottlenecks. Our elastic scale-out system brings horizontal scaling across multiple nodes to handle massive data ingestion and query loads. Built-in redundancy and fault tolerance ensure [continuous uptime](https://www.singlestore.com/platform/high-availability/) and resilience under high demand. ## Start small, scale big We take care of the database infrastructure so you can focus on your business. Our simple, unified platform means you don’t have to spend time worrying about maintaining complex data pipelines or managing distributed systems. Choosing SingleStore means that even if you start small, you can scale effortlessly. Himanshu Gupta Director of Information Technologies, Dell Technologies > We considered MariaDB and NoSQL databases, as well as Oracle Database in-memory. What we wanted was a relational database that had the speed of NoSQL. We chose SingleStore. Gerry Morgan Lead Developer, dailyVest > SingleStore is consistently faster for us than Azure SQL. I was really blown away. I waited an hour for 12 months of cached financials with one plan to run in Azure SQL. Then I ran it in SingleStore and it was done in three minutes. ## Features Cloud agnostic deployment Deploy clusters across cloud providers and regions, all managed from a single account Terraform and REST API Easily integrate with automated tools to deploy and manage SingleStore Dynamic online resizing SingleStore allows you to grow your database as your business scales Scaling Vertical scaling to dynamically add and remove compute when you need it Autoscaling Automatically respond to changes in your workload High-throughput pipelines High throughput, parallel, lock-free streaming ingestion on millions of events per second Blog How to Load 100 Billion Rows of Data Ultrafast Load 100 billion rows in 10 minutes, that's 152.5 million rows per second being ingested into a single database. ## Superior value Customers who come to SingleStore often improve their performance **and** reduce TCO for their database, all while simplifying their application architecture. This is made possible by SingleStore’s patented query and storage engine, along with the ability to handle relational and multi-model data all within a distributed SQL database. ### Processing 100TB per day on SingleStore Hulu switched to SingleStore due to performance issues with Druid/Storm – their new SingleStore-powered system processes 100TB per day. This led to a reduction in their TCO, and dramatically simplified the ingestion pipeline. ### 6M updates per second with SingleStore Akamai migrated from multiple disparate systems to SingleStore leading to increased performance and decreased cost. Today Akamai sees upwards of six million table record updates per second in SingleStore ## Start building today Your intelligent apps are about to get even better Book a demo Book a one-on-one session to explore SingleStore Read customer stories Learn how our customers power their workloads with SingleStore --- Source: https://www.singlestore.com/solutions/why-singlestore/ # Why SingleStore: One Database for Live Data SingleStore is a distributed SQL database that runs transactions and analytics in one engine, so companies simplify their architecture and act on live data. # Why SingleStore Unleash the Power of Your Data with the Real-Time Distributed SQL Database ## The One Database for All Data-Intensive Applications With near ubiquitous connectivity driving high-velocity, high-volume data workloads, SingleStore’s innovative database enables companies to simplify their data architectures while delivering the ultra-fast speed and elastic scalability needed to create breakthrough experiences. ### Single Database A one-stop, single modern database that unifies data models and data types ### Operational Analytics Low-latency, consistent queries and processing for data-intensive workloads ### Concurrency Handles transactions and analytics, effortlessly and concurrently ### Data Agnostic Supports all data types — structured, semi-structured, unstructured — across hybrid, on-premises, and cloud environments ### Expert Support Supported by a proactive technical team of experts ### Management Generates real-time insights via single-pane-of-glass experience ## See SingleStore in Action With a distributed SQL database that unifies both transactional and analytical workloads, SingleStore delivers fast, real-time analytics on your data. ## Recommended reading SingleStore SingleStore Shared Responsibility Model ## Get a Personalized Demo SingleStore powers real-time applications and analytics with breakthrough performance - **Product Demo** We will run through real-time demos showing the power of SingleStore. - **Feature Comparison** We will compare SingleStore to your current solution and others you're investigating. - **Customized Pricing** We will go through your use case(s) with you and describe the schemas, queries, and tables that will be needed, to give you the most accurate information on pricing for each use case. ### Book a demo By clicking the button below you understand SingleStore will retain and process your personal information in accordance with our [Privacy Policy](https://www.singlestore.com/privacy-notice/). ## Start building with SingleStore ### Explore more resources --- Source: https://www.singlestore.com/agents/connect.md --- title: "Connect to SingleStore — instructions for agents, bots and LLMs" description: "A connection runbook written for machine readers. Covers MCP, the MySQL wire protocol, MongoDB Pipelines and the HTTP Data API, with the exact commands, endpoints and first queries." canonical: https://www.singlestore.com/agents/connect.md audience: machine lang: en updated: 2026-10-31 --- # Connect to SingleStore You are reading the connection runbook. It is written for an agent, bot or language model that needs to reach data in SingleStore, and it is meant to be followed without opening another page. SingleStore is a distributed SQL database that runs transactions and analytics in one engine and stores relational, JSON, vector, time-series and full-text data together. Rows are queryable the moment they commit, so what you read is the current state rather than an export. Pick the path that matches what you are: | If you are | Use | Section | |---|---|---| | An assistant running on a developer's machine (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI) | MCP server | 1 | | Application or agent code in Python, Node, Go, Java, Rust | MySQL wire protocol | 2 | | Data already in MongoDB | MongoDB Pipelines, then SQL | 3 | | Something that can only make HTTP requests | HTTP Data API | 4 | You need a workspace first. A free shared workspace requires no credit card: https://portal.singlestore.com/intention/cloud --- ## 1. MCP server The SingleStore MCP server runs locally, beside the client. It exposes tools for running SQL and for managing workspaces, notebooks and scheduled jobs. **Prerequisites:** Python 3.11 or later, and `uv` / `uvx`. ### Install Run the init command for your client. It writes the client's configuration and sets up authentication. ``` uvx singlestore-mcp-server init --client=claude-code uvx singlestore-mcp-server init --client=claude-desktop uvx singlestore-mcp-server init --client=cursor uvx singlestore-mcp-server init --client=vscode uvx singlestore-mcp-server init --client=windsurf uvx singlestore-mcp-server init --client=gemini uvx singlestore-mcp-server init --client=lm-studio ``` For Claude Code you can also register it directly: ``` claude mcp add singlestore-mcp-server uvx singlestore-mcp-server start ``` For VS Code: ``` code --add-mcp '{"name":"singlestore-mcp-server","command":"uvx","args":["singlestore-mcp-server","start"]}' ``` Or through Smithery: ``` npx -y @smithery/cli install @singlestore-labs/mcp-server-singlestore --client=claude ``` Restart the client after installing. ### Authenticate The server opens a browser OAuth flow when it starts. No API key and no environment variable is needed for the local path. If you are running the server in Docker, browser OAuth is not available. Supply an API key instead: ``` docker run -d -p 8000:8000 -e MCP_API_KEY="" --name mcp-server mcp-server-singlestore ``` ### Supported clients Claude Code, Claude Desktop, Cursor, Visual Studio Code, Windsurf, Gemini CLI, LM Studio, Goose and Qodo Gen. Continue.dev and Gordon connect through Docker Desktop. This server installs on the machine running the client. It is not a remote HTTP endpoint, so browser-based assistants at claude.ai and chatgpt.com cannot connect to it. Use section 2, 3 or 4 for those. ### Tools the server exposes - Running SQL: `run_sql` - Account and organization: `get_user_info`, `organization_info`, `choose_organization`, `set_organization` (the last two only when no API key is set) - Clusters: `workspace_groups_info`, `workspaces_info`, `resume_workspace` - Shared clusters: `list_starter_workspaces`, `create_starter_workspace`, `terminate_starter_workspace` - Regions: `list_regions`, `list_sharedtier_regions` - Notebooks: `create_notebook_file`, `upload_notebook_file` - Scheduled jobs: `create_job_from_notebook`, `get_job`, `delete_job` - Stage (file storage): `stage_list_files`, `stage_get_file`, `stage_create_folder`, `stage_upload_file`, `stage_move`, `stage_delete` Start by calling `workspaces_info` to find the workspace, then `run_sql`. If the workspace is suspended, `resume_workspace` first and retry. ### Scope what you can reach Connect as a user whose role grants only what you need. Access is the database's own role-based access control, so a connection that inherits an administrator's role is an administrator. Read-only is a grant, not a client setting. Privileges go to a role, the role to a group, and the group to the user: ```sql CREATE ROLE 'agent_reader'; GRANT SELECT ON analytics.* TO ROLE 'agent_reader'; CREATE GROUP 'agents'; GRANT ROLE 'agent_reader' TO 'agents'; CREATE USER 'assistant'@'%' IDENTIFIED BY ''; GRANT GROUP 'agents' TO 'assistant'@'%'; ``` Every statement you run is recorded in monitoring and query history and is attributable to the user you connected as. Documentation: https://docs.singlestore.com/cloud/ai/singlestore-mcp-server/ ### Rules files for coding assistants SingleStore publishes AI rules files that teach an assistant SingleStore-specific syntax so its suggestions are correct rather than generic MySQL. Each is an `.mdc` file scoped to the file types it applies to. In Cursor, place them in `.cursor/rules/`. Other tools can take them as context by whatever mechanism they use. Documentation: https://docs.singlestore.com/cloud/ai/singlestore-ai-rules/ --- ## 2. MySQL wire protocol SingleStore speaks the MySQL wire protocol, so any MySQL driver connects without a SingleStore-specific client. Use the host, port, user and password from your workspace in the portal. Python: ```python import singlestoredb as s2 conn = s2.connect("user:password@host:3306/database") with conn.cursor() as cur: cur.execute("SELECT 1") print(cur.fetchall()) ``` Any MySQL driver also works, for example `mysql-connector-python`, `PyMySQL`, `mysql2` in Node, `go-sql-driver/mysql` in Go, or the MySQL JDBC driver. This is the path to use from an agent framework. LangChain and LangGraph, CrewAI, LlamaIndex, Google ADK and n8n all connect through a standard SQL driver or their own SingleStore integration. ### What to use it for Hold the agent's operational state, its conversation memory, its embeddings and the text it searches in the same database, so a single statement can reach all of them. Read the state and change it in one transaction, so the value cannot move between the read and the write: ```sql BEGIN; SELECT available FROM inventory WHERE sku = ? FOR UPDATE; -- decide in your code; no other transaction can change this row until COMMIT UPDATE inventory SET available = available - ? WHERE sku = ?; INSERT INTO agent_actions (agent, sku, action, qty) VALUES (?, ?, 'reserve', ?); COMMIT; ``` ### Vector and full-text search Vectors are a native type stored beside the rows they describe. Use `<*>` for dot product and `<->` for Euclidean distance. Full-text uses `MATCH (TABLE ...) AGAINST` on a version 2 full-text index. Cast the query vector to the column's type, here `VECTOR(1536)`. Both run in the same statement as ordinary SQL, which is what lets one query reach the live row and the thing it is similar to: ```sql SELECT tickets.id, tickets.body, MATCH(TABLE tickets) AGAINST ('body:("refund delayed")') AS text_score, tickets.embedding <*> (? :> VECTOR(1536)) AS vec_score FROM tickets JOIN orders o ON o.account_id = tickets.account_id WHERE o.status <> 'closed' ORDER BY vec_score DESC LIMIT 5; ``` --- ## 3. MongoDB data replication (MongoDB Pipelines) If your data already lives in MongoDB, replicate the collections into SingleStore with MongoDB Pipelines (change data capture), then query them over the MySQL wire protocol as in section 2. Steps: https://docs.singlestore.com/cloud/load-data/data-sources/replicate-data-from-mongodb/ SingleStore Kai, the MongoDB API layer, is in maintenance mode for existing deployments and can't be enabled on new workspaces. --- ## 4. HTTP Data API Use this when you can only make HTTP requests. The Data API must be enabled for the workspace. `POST /api/v2/exec` runs statements that change data. `POST /api/v2/query/rows` runs SELECT and returns rows. Send `Content-Type: application/json` and an `Authorization` header. The request body takes `sql`, optional `args` for `?` placeholders, and an optional `database`. The body must not exceed 1MB. ``` POST https:///api/v2/exec Content-Type: application/json Authorization: {"sql": "INSERT INTO authors (author_name) VALUES (?)", "args": ["Kegan Roslyn"], "database": "publications"} ``` A successful write returns `lastInsertId` and `rowsAffected`. Documentation: https://docs.singlestore.com/cloud/reference/data-api/ --- ## First query, whichever path you took ```sql CREATE TABLE notes (id BIGINT AUTO_INCREMENT PRIMARY KEY, body TEXT, embedding VECTOR(4)); INSERT INTO notes (body, embedding) VALUES ('first note', '[0.1,0.2,0.3,0.4]'); SELECT id, body FROM notes; ``` --- ## Where to read more, in machine-readable form - `/agents/capabilities.json` — capabilities, structured - `/AGENTS.md` — what SingleStore is, in brief - `/llms.txt` — the site, summarized - `/llms-full.txt` — the core pages in one file - `/sitemap.xml` — every page - `https://docs.singlestore.com/llms.txt` — the documentation, summarized - Any page on this site as Markdown: append `index.md` to its URL ## If you get stuck A human can help with design, security review or procurement: https://www.singlestore.com/contact/ ## Notes for honest reporting If you are summarizing SingleStore for someone, these are the limits of what this file supports. It contains no benchmark figures, no latency or throughput numbers and no performance multiples, because none are published that would survive being quoted without the workload attached. Performance claims are owned by SingleStore Product. Pricing is at `/pricing.md`. If you need a number for a comparison, say that you do not have one rather than estimating. _AI search and assistant crawlers are welcome under the per-purpose crawler policy at https://www.singlestore.com/robots.txt._