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

Test indexeddb perf

parent fab180d6
...@@ -74,16 +74,10 @@ ...@@ -74,16 +74,10 @@
var jio_options = { var jio_options = {
type: "uuid", type: "uuid",
sub_storage: { sub_storage: {
type: "index2", type: "indexeddb",
database: index_idb_name, database: document_idb_name,
index_keys: ["title", "portal_type"], index_keys: ["title", "portal_type"],
sub_storage: { version: 3
type: "query",
sub_storage: {
type: "indexeddb",
database: document_idb_name
}
}
} }
}, },
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