Skip to content

Commit

Permalink
Fix database version that fallback uses
Browse files Browse the repository at this point in the history
  • Loading branch information
jlongster committed Aug 12, 2021
1 parent da1f012 commit 6a94d73
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "absurd-sql",
"version": "0.0.45",
"version": "0.0.47",
"main": "./dist/index.js",
"scripts": {
"build": "rm -rf dist && rollup -c rollup.config.js",
Expand Down
5 changes: 2 additions & 3 deletions src/examples/bench/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<div class="text">
This is sqlite3 running in your browser with a backend that
properly persists the database in IndexedDB
(<a href="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/jlongster/absurd-sql.js-backend">absurd-sql.js-backend</a>).
(<a href="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/jlongster/absurd-sql">absurd-sql</a>).
It stores each page from the db as a separate item, treating IDB
like a hard disk. It never has to load the full DB into memory
and can update it with small individual writes.
Expand All @@ -93,8 +93,7 @@
The below examples are meant to be stress tests, showing that it
can handle large amounts of data and queries that need to scan
all of it. With more normal cases and a small cache, it works
really well. It easily beats IndexedDB by a factor of 10 or
more.
really well. It easily beats IndexedDB up to a factor of 10.
</div>

<div>
Expand Down
2 changes: 1 addition & 1 deletion src/examples/fts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<div class="text">
This is sqlite3 running in your browser with a backend that
properly persists the database in IndexedDB
(<a href="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/jlongster/absurd-sql.js-backend">absurd-sql.js-backend</a>).
(<a href="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/jlongster/absurd-sql">absurd-sql</a>).
</div>

<div class="text last">
Expand Down
2 changes: 1 addition & 1 deletion src/indexeddb/file-ops-fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function positionToKey(pos, blockSize) {

async function openDb(name) {
return new Promise((resolve, reject) => {
let req = globalThis.indexedDB.open(name, 1);
let req = globalThis.indexedDB.open(name, 2);
req.onsuccess = event => {
let db = event.target.result;

Expand Down

0 comments on commit 6a94d73

Please sign in to comment.