Commit 61478d22 authored by Romain Courteaud's avatar Romain Courteaud

Test indexeddb perf

parent fab180d6
...@@ -73,17 +73,11 @@ ...@@ -73,17 +73,11 @@
console.info(index_idb_name); console.info(index_idb_name);
var jio_options = { var jio_options = {
type: "uuid", type: "uuid",
sub_storage: {
type: "index2",
database: index_idb_name,
index_keys: ["title", "portal_type"],
sub_storage: {
type: "query",
sub_storage: { sub_storage: {
type: "indexeddb", type: "indexeddb",
database: document_idb_name database: document_idb_name,
} index_keys: ["title", "portal_type"],
} version: 3
} }
}, },
document_count = 10000, document_count = 10000,
...@@ -157,19 +151,19 @@ ...@@ -157,19 +151,19 @@
.then(function () { .then(function () {
return checkQueryListSpeed( return checkQueryListSpeed(
{}, {},
{limit: [0, 1]}, // {limit: [0, 1]},
// Monovalued index // Monovalued index
{query: 'portal_type:"Jio Perf"'}, {subquery: 'portal_type:"Jio Perf"'},
{query: 'portal_type:"Jio Perf"', limit: [0, 1]}, // {query: 'portal_type:"Jio Perf"', limit: [0, 1]},
{query: 'portal_type:"NOTMATCHING"'}, {subquery: 'portal_type:"NOTMATCHING"'},
// Multi valued index // Multi valued index
{query: 'title:"12345"'}, {subquery: 'title:"12345"'},
{query: 'title:"12345"', limit: [0, 1]}, // {query: 'title:"12345"', limit: [0, 1]},
{query: 'title:"NOTMATCHING"'}, {subquery: 'title:"NOTMATCHING"'},
// No index // No index
{query: 'modification_date:"12345"'}, {subquery: 'modification_date:"12345"'},
{query: 'modification_date:"12345"', limit: [0, 1]}, // {query: 'modification_date:"12345"', limit: [0, 1]},
{query: 'modification_date:"NOTMATCHING"'} {subquery: 'modification_date:"NOTMATCHING"'}
); );
}) })
.fail(function (error) { .fail(function (error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment