frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: SQL service for tables with billions of rows or up to 1M columns

4•synsqlbythesea•7h ago
Hi All,

March 2023. I was in touch to join a "big data" IT service company. I didn't get the job... Before the team decided I was too old, they introduced me to products I wasn't previously aware of. Since that time, I’ve been building a distributed SQL data engine. I started from 2 previous personal projects. A distributed network filesystem and a peer-to-peer Linux cluster. The goal was to manage "impossible tables": narrow tables with billions of rows or wide tables with columns by the million.

My opinion was and remains this simple idea: you can orchestrate single MariaDB servers to build a global resilient and massively parallel SQL service.

How SynSQL works under the hood:

    Storage Delegation: Physical storage is delegated to MariaDB data brokers to store table data. The data dictionary is also delegated to MariaDB master brokers (mirror managed). 
    Wide tables are vertically sliced into chunks. Each chunk is mapped to a specific broker. You can consider a narrow table as a single chunk table.
    All tables are mandatorily partitioned across nodes using a primary hash key. 
    When a query hits a SynSQL server, it dynamically spawns a tree of Linux processes via fork(). Leaf processes query only the specific brokers holding the requested data and ignore unneeded chunks. Other node processes assemble rows.
    Memory control: Any node at any position in the process tree reads and sends data using a limited 64K buffer. Huge rows are assembled part by part to avoid OOM issues.
High Availability & Resilience:

    A SynSQL Cluster may present up to 32 SynSQL servers sharing a minimal global state. If a node fails, the resilient client automatically reconnects to another active node.
    Metadata: Dictionaries are mirrored across Master Brokers and out-of-sequence resynced at cluster boot. You can also add a master broker on the fly.
    Data layer: Partitions rely on 1 to 3 "reflects" (dedicated MariaDB instances) per partition.
Try the Live Workshops:

No slides. No benchmarks. Run your own queries on two live datasets:

    - Wide Table example multi_omics: 585,010 columns × 10,000 rows. Pick any set of columns and test the extraction speed. https://synsql.com/multiomics_demo.html
    - Deep Table Example: A real-time join across astronomical datasets: Gaia source_data and astrophysical_parameters. 1.8B x 1.5B row join. https://synsql.com/gaia_demo.html
You would like to try it on premise ? Let's get in touch.

Thanks for checking it out, Stéphane

Comments

islambaraka•6h ago
How does SynSQL handle queries that do not include the primary hash key? Does it fan out to every partition, or maintain secondary routing metadata?

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

337•adam_rida•11h ago•164 comments

Show HN: Palmier Pro – Open-source macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
142•harrisontin•15h ago•21 comments

Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents

https://github.com/onecli/onecli
88•Jonathanfishner•15h ago•29 comments

Show HN: A factory simulator game built on Spreadsheets

https://www.logisheets.com/?craft=factory-simulator
12•JeremyHe•5h ago•0 comments

Show HN: Claude-thermos keeps your Claude session warm for you

https://github.com/izeigerman/claude-thermos
94•s0ck_r4w•13h ago•79 comments

Show HN: Trifle – Open-source analytics that stores answers, not events

https://trifle.io/
43•iluzone•1d ago•9 comments

Show HN: Remux – an open-source tmux workspace designed for iPhone

https://github.com/h3nock/remux
92•bitwise42•16h ago•31 comments

Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

https://yamafaktory.github.io/whetuu/
46•yamafaktory•16h ago•35 comments

Show HN: Life Tile – Passive time tracker that shows your day as a Mondrian grid

https://apps.apple.com/us/app/life-tile-auto-tracker/id6767332648
5•choyongjoon•6h ago•0 comments

Show HN: I built a local Node.js conduit for the BorgIOS network

https://github.com/bitmonky/borgHUI
2•BorgIOS•3h ago•1 comments

Show HN: I poked at the golden ratio in SQL and solved an open math problem

https://blob.byteterrace.com/public/bds-theorem.html
3•kittoes•4h ago•0 comments

Show HN: Bento - An entire PowerPoint in one HTML file (edit+view+data+collab)

https://bento.page/slides/
990•starfallg•1d ago•233 comments

Show HN: Turo – An Aggressive Token-Saving Proxy for CLI AI Agents

https://github.com/kdeps/turo
3•jjuliano•6h ago•2 comments

Show HN: Connecting my dumb garage and car's homelink buttons to Home Assistant

https://dsauerbrun.com/writing/dumb-garage
10•dsauerbrun•9h ago•0 comments

Show HN: macOS menu-bar manager for SSH port forwards

https://github.com/lx2026/RelayBar
41•linxy97•16h ago•7 comments

Show HN: I built a zero-latency developer tool suite in pure Vanilla JavaScript

https://omnideck.cc/
19•AAPD_Studio•16h ago•10 comments

Show HN: Openleetcode – LeetCode runner where tests live in the repo

https://github.com/therepanic/openleetcode
2•therepanic•5h ago•0 comments

Show HN: Coypa is a fun way to manage your clipboard

https://github.com/willmeyers/coypa
3•willmeyers•5h ago•0 comments

Show HN: Understanding Floating Point

https://proto.csprimer.com/fp/
2•ozanonay•5h ago•0 comments

Show HN: Dally – A little every day adds up

https://mctools.site
18•totaldude87•16h ago•2 comments

Show HN: CLI Coding Agent that runs on llamafile and/or GGUF

https://github.com/kdeps/kdeps
2•jjuliano•6h ago•0 comments

Show HN: Cactus Hybrid: We taught Gemma 4 to know when it's wrong

https://github.com/cactus-compute/cactus-hybrid
183•HenryNdubuaku•1d ago•40 comments

Show HN: Verified B2B leads with the reason to reach out now

https://madleadz.com/
2•not_wowinter14•7h ago•0 comments

Show HN: SQL service for tables with billions of rows or up to 1M columns

4•synsqlbythesea•7h ago•1 comments

Show HN: Flow Matching model inference in C

https://github.com/ecrasevvv/c-fm/tree/master
4•ecrasevvv•13h ago•0 comments

Show HN: DeepSQL – A self-hostable DBA agent for Postgres and MySQL

https://deepsql.ai/
50•venkat971•3d ago•33 comments

Show HN: HN Hall of Fame – browse 3,100 legendary Hacker News links

https://www.orangecrumbs.com/hall/
209•oyster143•1d ago•38 comments

Show HN: Hanky – ETL style framework for loading flash cards into Anki

https://github.com/Haeata-Ash/hanky
10•funfruit•16h ago•0 comments

Show HN: Web swing through midtown NYC

https://www.swingnyc.com/
76•shahahmed•1d ago•26 comments

Show HN: I simulated closing the Strait of Hormuz on real oil trade data

https://globaloilnetwork.staffinganalytics.io/
8•eliotho•18h ago•3 comments