Don’t we all just want to use SQL on the front end?
41–50 of 184 posts
Re: Don’t we all just want to use SQL on the front end?
#42I also expect fans of Django and the like to be opposed...
Re: Don’t we all just want to use SQL on the front end?
#43It wasn't always clear whether any given piece of processing logic belonged in the frontend or backend code, and trying to manage the contract between the two seemed like unnecessary busywork when there was already a well-designed interface between the backend and the database.
In the end this 3-moving-parts design did work, but I wished I had tried something like AWS AppSync[0] which is basically "managed GraphQL".
Re: Don’t we all just want to use SQL on the front end?
#44Re: Don’t we all just want to use SQL on the front end?
#45Fundamentally SQL the language is not designed for the added complexity and and I'm not aware of anything closer than GraphQL.
There are security, transnational, caching and computational questions to solve.
Edit: Maybe FirebaseDB et al are better analogs, actually.
Re: Don’t we all just want to use SQL on the front end?
#46Although not SQL, this is essentially the approach Meteor takes where you have your same DB on the front and back end https://www.meteor.com/
Re: Don’t we all just want to use SQL on the front end?
#47- a sqlite database for each user on the backend
- then on page load, have them download their whole sqlite db on the frontend
- sync the two with something like litestream.io compiled for webassembly
Re: Don’t we all just want to use SQL on the front end?
#48Re: Don’t we all just want to use SQL on the front end?
#49I'm in the "no" camp. First, I don't want to couple my data model to the front-end. Second, the front end applications I worked on, have a relatively small contact surface with the database. Mostly, they retrieve a bunch of records with a common property. There's no need to expose the full power of a query language. Third, the thought of uncontrolled, expensive queries should make every sysadmin break out in sweat. I…
Re: Don’t we all just want to use SQL on the front end?
#50It doesn't exist yet, but when the tooling is there it's really going to make a splash.