DEV Community

Discussion on: Need Help, building off-line & file based airtable

Collapse
 
rakannimer profile image
Rakan Nimer

Here's a good overview of when to use sqlite : sqlite.org/whentouse.html

Querying 500K - 1M rows of well structured and indexed data won't be the problem (unless you want to do very complex queries), it's more likely that concurrent writes will be your bottleneck, but in your use-case it doesn't seem like you'll have that problem ?

Hope that helps !
Cheers

Thread Thread
 
madibalive profile image
Razak Wasiu

Hi thanks for the reply,my plan is to switch to hosted mysql for collaboration, so use sqlite for single user ,over electron basically like excel, do i face concurrency using single user,mostly multiple promise chain query?

Thread Thread
 
rakannimer profile image
Rakan Nimer

Using it as a mysql caching layer for single-user should work smoothly. At worst, if you face performance issues you can trim old data.

Make sure to check out better-sqlite3. It offers a sync, fast API for sqlite.

Thread Thread
 
madibalive profile image
Razak Wasiu

thanks for the all the help. off to read the docs on sqlite but be best contender