Re:Lovefield – A relational database for web apps
by DCoder on Thursday September 10, 2015 @10:47AM
(#10198343)
We have a web app that downloads a large list of simple repetitive maintenance tasks ("check amount of spare printer toner", "water the office plants", and such) with documentation, images, etc. that need to be performed regularly, and then shows the user that list so he can perform the tasks and send back the results. Some companies using this app do not allow internet access in the specific areas where tasks have to be performed, so some parts of the app have to work without it. Business requirement was "store enough info on the device to be able to run without internet access for one month".
Without an in-browser persistent database (we used WebSQL, with all the future risks), it would require some interesting workarounds (can you serialize multiple megabytes to local storage? how long will it take? will it rollback from a fault correctly?) or Phonegap type solutions.
Re:Lovefield – A relational database for web apps
by rglullis on Thursday September 10, 2015 @10:21AM
(#10198174)
Offline-first web apps. Think of all of the "native mobile apps" that could actually be done as a web app, but instead get built as native applications just because the application needs to store data.
Re:Lovefield – A relational database for web apps
by zzzmarcus on Thursday September 10, 2015 @10:35AM
(#10198267)
Also Electron apps. It's currently pretty painful getting sqlite working with Electron, this could be a nice alternative.
Re:Lovefield – A relational database for web apps
by beefman on Thursday September 10, 2015 @01:21PM
(#10199328)
Have you tried the emscripten port of SQLite? It's worked well for me... http://github.com/kripken/sql.js
Re:Lovefield – A relational database for web apps
by zzzmarcus on Saturday September 12, 2015 @08:04PM
(#10209848)
I've tried it, the main problem I have withe it is that the whole DB has to be loaded into memory. It seems like it would be slow and unwieldy with even a moderate sized database. I'm still keeping it open as an option, but I like that Lovefield uses indexedb under the sheets.
Re:Lovefield – A relational database for web apps
by neilellis on Thursday September 10, 2015 @10:19AM
(#10198152)
It's like having PouchDB -> CouchDB but with SQL not NoSQL
For me I'd like to:
Firebase as backend. Sync user data to browser. Query user data elegantly in browser using select statements.
Re:Lovefield – A relational database for web apps
by Argorak on Thursday September 10, 2015 @10:31AM
(#10198230)
> It's like having PouchDB -> CouchDB but with SQL not NoSQL
Also, without the replication and conflict detection.
Re:Lovefield – A relational database for web apps
by marknadal on Thursday September 10, 2015 @03:26PM
(#10200024)
Have you seen http://gunDB.io (disclosure: I am the author)? It has what you are describing. As well as replication and conflict resolution that the other commenter mentions.
Re:Lovefield – A relational database for web apps
by ysh7 on Thursday September 10, 2015 @10:47AM
(#10198345)
Better way to describe it was "like SQLite"
Re:Lovefield – A relational database for web apps
by aggronn on Thursday September 10, 2015 @07:14PM
(#10201136)
Any data-heavy applications that have significant grouping/filtering/etc.. SQL is very powerful, and when you try to work with large datasets in the browser, its kind of disappointing that you have to either transfer a lot of data on every data view change or do SQL's job with lodash collection methods.
Re:Lovefield – A relational database for web apps
by toddchambery on Thursday September 10, 2015 @01:23PM
(#10199342)
I implemented a character manager using TaffyDB[1], loading lots of static data upfront. Made calculations using cross "table" lookups much simpler from a coding perspective.
I'm clearly missing something, but I can't be bothered to watch the videos - can someone TL;DR it for me, please.