Company
Date Published
Author
Shrinivas Sagare
Word count
1652
Language
English
Hacker News points
None

Summary

SingleStoreDB is a distributed, relational database that handles both transactions and real-time analytics at scale, designed to run on on-prem systems as well as major cloud systems like AWS, Azure, and GCP. It's ANSI SQL-compatible and natively supports structured, semi-structured, and unstructured data. In SingleStore, objects are used to store or reference data in SQL queries, including tables, views, indexes, stored procedures, and functions. A database is the first object created in a SingleStore cluster, which can be case-sensitive depending on the engine variable table_name_case_sensitivity setting. Tables in SingleStore come in different types, such as rowstore, columnstore, reference, temporary, and global temporary tables, each with its advantages for specific workloads. Rowstore tables are great for transactional workloads, while columnstore tables excel at analytical workloads due to their fast aggregations and table scans. Reference tables eliminate network data transfer during query execution by replicating on every node in the cluster. Temporary tables exist for a client session and cannot be queried by other users, whereas global temporary tables are shared across sessions and can be queried by other users with required privileges. Views provide several advantages over tables, including representing a subset of data, joining multiple tables, aggregating data, hiding complexities, taking little space to store, and providing extra security.