4 ms·
> Our average trip to the database is ~5 milliseconds Do you miss the performance that you had when the DB was running inside the application process using SQL
by mwcampbell 3y ago
> Our average trip to the database is ~5 milliseconds
Do you miss the performance that you had when the DB was running inside the application process using SQLite? Are you at all sad that you had to give that up in order to outsource compliance to Azure?
- bob1029 3y ago> Are you at all sad that you had to give that up in order to outsource compliance to Azure? A little bit, but it's honestly much better this way in our use case. For our specific business & application, going from 50uS to 5000uS feels like nothing. We were squandering 2+ orders of magnitude over JSON blobs in columns anyways. We really didn't need 50uS transactions for anything. What turned out to be far more important was one source of truth to worry about. We have a lot of installs and a lot of SQLite databases out there. Now we are looking at exactly one for the whole enterprise. Moving to hosted DB forced cleaner schema design. No json blobs = law now because of IO scaling concerns. We can't afford to move 5 megabytes of JSON across the datacenter every time someone clicks a button anymore. Average per-user-action database hit has fallen by 4~5 orders of magnitude. Megabytes to hundreds of bytes. Overall perceived performance is actually much better because of these design constraints. We also try to get the web views composed using as few queries as possible (i.e. finally make the database do its damn job instead of lazily peddling JSON).