News for hackers. Stuff that matters.
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by r0fl on Thursday July 03, 2025 @02:56PM (#44458129)
I use CSV files to run multiple sites with 40,000+ pages each. Close to 1mil pages total

Super fast

Can’t hack me because those CSV files are stored elsewhere and only pulled on build

Free, ultra fast, no latency. Every alternative I’ve tried is slower and eventually costs money.

CSV files stored on GitHub/vercel/netlify/cloudflare pages can scale to millions of rows for free if divided properly

Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by vineyardmike on Thursday July 03, 2025 @03:16PM (#44458300)
Can't argue with what works, but...

All these benefits also apply to SQLite, but SQLite is also typed, indexed, and works with tons of tools and libraries.

It can even be stored as a static file on various serving options mentioned above. Even better, it can be served on a per-page basis, so you can download just the index to the client, who can query for specific chunks of the database, further reducing the bandwidth required to serve.

Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by deepsun on Thursday July 03, 2025 @06:04PM (#44459549)
Just to be pedantic, SQLite is not really typed. I'd call them type-hints, like in Python. Their (bad IMHO) arguments for it: https://www.sqlite.org/flextypegood.html
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by newlisp on Thursday July 03, 2025 @06:44PM (#44459754)
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by dragonwriter on Thursday July 03, 2025 @07:28PM (#44459970)
A sibling comment posted a blind link whose contents address this, but (for the benefit of people who aren't likely to follow such links), recent versions of SQLite support STRICT tables which are rigidly typed, if you have a meed tor that instead of the default loose type affinity system.
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by ezekiel68 on Thursday July 03, 2025 @07:20PM (#44459913)
TBH this is why I've never messed with SQLite.

If I want to bother with a SQL database, I at least want the benefit of the physical layer compressing data to the declared types and PostgreSQL scales down surprisingly well to lower-resource (by 2025 standards) environments.

Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by MobiusHorizons on Thursday July 03, 2025 @08:36PM (#44460265)
How exactly do you anticipate using Postgres on client? Or are you ignoring the problem statement and saying it’s better to run a backend?
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by throwaway032023 on Thursday July 03, 2025 @10:11PM (#44460578)
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by felipeccastro on Friday July 04, 2025 @11:01AM (#44465144)
Not sure why this was downvoted, but I’d be very interested in learning how well does pglite compares to SQLite (pros and cons of each, maturity, etc)
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by MobiusHorizons on Friday July 04, 2025 @11:43AM (#44465512)
Interesting. TIL
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by edmundsauto on Thursday July 03, 2025 @06:12PM (#44459594)
Don’t you think it’s better in this dimension than CSV though? It seems to me like it’s a strictly better improvement than the other option discussed.
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by fer on Friday July 04, 2025 @04:56AM (#44462610)
> Just to be pedantic, SQLite is not really typed. I'd call them type-hints, like in Python

Someone already chimed in for SQLite, so worth mentioning that Python is hard typed, just dynamic. Everyone has seen TypeError; you'll get that even without hints. It becomes particularly obvious when using Cython, the dynamic part is gone and you have to type your stuff manually. Type hints are indeed hints, but for your IDE, or mypy, or you (for clarity).

It's a bit like saying C++ isn't typed because you can use "auto".

Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by Drew_ on Thursday July 03, 2025 @03:31PM (#44458419)
It sounds like you use CSVs to build static websites, not store or update any dynamic data. That's not even remotely comparable.
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by akudha on Thursday July 03, 2025 @03:03PM (#44458194)
Is this a static website? If yes, what do you use to build?
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by AbraKdabra on Thursday July 03, 2025 @04:30PM (#44458904)
So... SQLite with less features basically.
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by Spivak on Thursday July 03, 2025 @05:31PM (#44459369)
Every file format is SQLite with fewer features.
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by deepsun on Thursday July 03, 2025 @06:09PM (#44459571)
Unless it's Apache Arrow or Parquet.
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by Moto7451 on Thursday July 03, 2025 @07:57PM (#44460105)
For both fun and profit I’ve used the Parquet extension for SQLite to have the “Yes” answer to the question of “SQLite or Parquet?”
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by AbraKdabra on Tuesday July 08, 2025 @11:47AM (#44501124)
jfc is there anything Apache doesn't have a software for?
Re:Poor Man's Back End-as-a-Service (BaaS), Similar to Fireb... by tansan on Friday July 04, 2025 @09:06AM (#44464188)
The way you write this makes it sound like your websites are pulling from the CSV per request. However, you're building static websites and uploading it to a CDN. I don't think SQL is needed here and CSV makes life way easier, but you can swap your CSV with any other storage device in this strategy and it would work the same.