Skip to content

Commit 22c5cff

Browse files
committed
add missing indexes (city, status) and optimize wasm caching
1 parent 504f4b6 commit 22c5cff

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
84 Bytes
Binary file not shown.

public/jsonic-bench/src/runner.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,12 @@ export class BenchmarkRunner {
189189
console.log(` Preparing data for ${name}...`);
190190
await adapter.clear();
191191
await adapter.bulkInsert(testData.documents);
192-
193-
// Create index if supported
192+
193+
// Create indexes on all queried fields
194194
if (adapter.features.indexes) {
195195
await adapter.createIndex('age', 'age');
196+
await adapter.createIndex('city', 'city');
197+
await adapter.createIndex('status', 'status');
196198
}
197199
preparedAdapters.add(name);
198200
} catch (error) {

public/jsonic_wasm_bg.wasm

84 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)