Thursday, 7 January 2016

SQLite + NodeJS? Is this a better combination?

AS SOON as I submitted, I wanted to change "better" to "good". Damb you, subject line editor!Having read this article based on a post in /r/learnprogramming, it says this . . .SQLite's speed makes up for one of it's (perceived) greatest shortcomings, which is database-file locking for writes. By writing data incredibly quickly, database locking only becomes an issue when there is a great deal of concurrent writers.But wait . . . single threade, event loop Node isn't going to have a bunch of concurrent writers. Matter of fact, and correct me if I'm wrong, the event loop is going to manage all those writes into a practically serial stream.Therefore, this "shortcoming" is actually a non-issue.Or am I missing something?

Submitted January 07, 2016 at 07:53PM by monsto

No comments:

Post a Comment