Lurker News
Hello HN!

I've found my SQL knowledge to be lacking, so I made a project that uses SQLite as a backend.
As it is intended for self-hosting I aim to make it easy to set up and maintain. Getting it up & running takes no more than a few commands (bar setting up a proxy such as nginx, which is out of scope).
I've set up a "demo" site at https://forum.agreper.com/ if you want to try out the UI.

Comments (155) 36 threads

Earlier comments
allanrbo#
Refreshingly simple. I'm so tired of JS bloat.
genericacct#
IMHO one of the best features a modern web forum sw can provide is browser notifications
Aperocky3 replies#
May I recommend an ORM for any such project? hand rolling SQL statement aren't going to scale.

Here's my shameless plug: `pip install sqlitedao`: https://github.com/Aperocky/sqlitedao

softfalcon1 reply#
Not trying to bash your ORM as it could have a great translation layer to make optimal queries.

my experience optimizing SQL has been removing the ORM layer via hand rolling SQL queries.
Most of my peers also seem to agree that ORM is great for knocking a feature out, but you’ll inevitably run into performance concerns at scale and need to write your own optimized queries yourself.
I feel like with SQLite having limited resources, you’d likely want to optimize your queries as best you can without an ORM? Is that not the case?

Aperocky#
A well thought out ORM would consider for performance, obviously if you're just retrieving a particular string then manual SQL might have a few times speed lead.

The fundamental issue with both handrolled SQL and ORM is inefficient queries leading to linearly increasing time consumption. for instance usage of `LIMIT` and accidentally querying on non-indexed fields. But I don't see how this differentiate the 2 as I have seen it happen in both situations professionally.
A good ORM enforces certain behaviors, specifically querying by index and constant time pagination. This guards against accidental querying behaviors.

tonetheman1 reply#
My experience is the exact opposite.

ORM's never scale and you end up with hand written SQL long term. Unless it is really just a CRUD app then ORM's really work fairly well.

Aperocky#
On a personal and professional level it has been the opposite case for me.
bityard#
I get the impression that OP's project is not aiming for scale.

Load more comments