HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
ente
edge-db-benchmarks
C++2024–2024
ente / edge-db-benchmarks · Archived

edge-db-benchmarks

Benchmarking SQLite vs. ObjectBox vs. Isar

4Distinct people
11Mentions
0Explicit recommenders
2GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Benchmarking SQLite vs. ObjectBox vs. Isar

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour11 dated mentions

Observed mentions: 2024-02-07 15:49:56 UTC to 2024-02-07 17:31:24 UTC.

02462024-02-07 15:00:00 UTC to 2024-02-07 16:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 commentsFeb 7, 15:002024-02-07 16:00:00 UTC to 2024-02-07 17:00:00 UTC (exclusive): 7 mentions; 0 submissions, 7 commentsFeb 7, 16:002024-02-07 17:00:00 UTC to 2024-02-07 18:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsFeb 7, 17:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Feb 7, 15:002024-02-07 15:00:00 UTC2024-02-07 16:00:00 UTC303
Feb 7, 16:002024-02-07 16:00:00 UTC2024-02-07 17:00:00 UTC707
Feb 7, 17:002024-02-07 17:00:00 UTC2024-02-07 18:00:00 UTC101

What Hacker News says

11 sources
https://github.com/ente-io/edge-db-benchmarks/blob/43273607d... If this is how you are doing reads, this is your problem. Limit/offset reads are slow. You'll get much better results if you do a proper pagination implementation. This article describes the problem and solution that'd give you much better read results. https://use-the-index-luke.com/sql/partial-results/fetch-nex... (don't forget page 2 https://use-the-index-luke.com/sql/partial-results/window-fu... )
In SQLite vs. ObjectBox vs. Isar
Nice catch, thank you! I was playing around with the offsets incorrectly, while attempting to reduce the memory footprint on a low-end Android device. I've updated the code[1] to read all embeddings in one shot, and I'm now measuring the time to read and the time to deserialize separately. On an iPhone simulator running on an Apple M3 Pro, this is what it says: ``` [log] SqliteDB fetch all took: 1572 ms [log] SqliteDB deserialization took: 4268 ms ... [log] Isar: 100000 embeddings retrieved in 616 ms ``` [1]: https://github.com/ente-io/edge-db-benchmarks/commit/e02c3d3...
In SQLite vs. ObjectBox vs. Isar
Look here: https://github.com/ente-io/edge-db-benchmarks/blob/43273607d... SELECT $columnEmbedding FROM $tableName LIMIT 10000 OFFSET $offset They're not using any indexes, because they're doing offset pagination [1] in a loop. And offset pagination is causing them to scan 550K total rows [2] instead of 100K. OP, change your code. You're probably wrong about SQLite being slower than Isar, or at least it must be very close. [1] https://use-the-index-luke.com/no-offset [2] 10K + 20K + 30K + 40K + 50K + 60K + 70K + 80K + 90K + 100K = 550K
In SQLite vs. ObjectBox vs. Isar
My bad, I linked to the wrong portion of the code. Here's the updated link[1]. We are executing the entire write in a single batch query. From what we observed, and have documented, it is the serialization that is causing the bottleneck, not the write itself. Also, more than writes, it is the latency associated with deserializing the read data into models that pushed us to look at options outside SQLite. [1]: https://github.com/ente-io/edge-db-benchmarks/blob/43273607d...
In SQLite vs. ObjectBox vs. Isar

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.