r/sqlite • • 1d ago

Running 1,000 Standalone SQLite Databases Inside SQL Server

I have been making SQL do things it was never meant to do. I have worked with SQL Server for nearly 30 years and have sat on these ideas for a long time. The blog has all the ways I have been doing this, and the most recent post uses SQLite; they are all mirrored to Medium also.

Most of the time I achieve the goal; others are questionable, but the way I get there might be interesting. All the code is either in the article or in the GitHub-linked project folder.

Hope you enjoy and I think I can get it to 10,000 :)

Running 1,000 SQLite Databases Inside SQL Server

22 Upvotes

3 comments sorted by

3

u/DataFracking 1d ago

the routing approach is interesting. nice work.

2

u/Pavan_Lalwani 16h ago

After decades of working around locked-down enterprise databases, seeing someone force SQL Server to do things it was never designed for is pure joy.

Even when an experiment like this isn't meant for production, pushing an engine to its breaking point is still the best way to understand how memory, locking, and file I/O actually behave under pressure.

Definitely curious to see what breaks first when you try to push this up to 10,000.

1

u/BetterDistrict3979 17h ago

peak database madness (its a compliment). Are you wiring them up through SQLCLR or sp_execute_external_script? I wonder which wall you expect to hit first on the way to 10,000: memory pressure, open file handles, or SQL Server's scheduler pushing back.