Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
jio
Commits
61478d22
Commit
61478d22
authored
Apr 26, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test indexeddb perf
parent
fab180d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
+13
-19
examples/perf.js
examples/perf.js
+13
-19
No files found.
examples/perf.js
View file @
61478d22
...
...
@@ -73,17 +73,11 @@
console
.
info
(
index_idb_name
);
var
jio_options
=
{
type
:
"
uuid
"
,
sub_storage
:
{
type
:
"
index2
"
,
database
:
index_idb_name
,
index_keys
:
[
"
title
"
,
"
portal_type
"
],
sub_storage
:
{
type
:
"
query
"
,
sub_storage
:
{
type
:
"
indexeddb
"
,
database
:
document_idb_name
}
}
database
:
document_idb_name
,
index_keys
:
[
"
title
"
,
"
portal_type
"
],
version
:
3
}
},
document_count
=
10000
,
...
...
@@ -157,19 +151,19 @@
.
then
(
function
()
{
return
checkQueryListSpeed
(
{},
{
limit
:
[
0
,
1
]},
//
{limit: [0, 1]},
// Monovalued index
{
query
:
'
portal_type:"Jio Perf"
'
},
{
query
:
'
portal_type:"Jio Perf"
'
,
limit
:
[
0
,
1
]},
{
query
:
'
portal_type:"NOTMATCHING"
'
},
{
sub
query
:
'
portal_type:"Jio Perf"
'
},
//
{query: 'portal_type:"Jio Perf"', limit: [0, 1]},
{
sub
query
:
'
portal_type:"NOTMATCHING"
'
},
// Multi valued index
{
query
:
'
title:"12345"
'
},
{
query
:
'
title:"12345"
'
,
limit
:
[
0
,
1
]},
{
query
:
'
title:"NOTMATCHING"
'
},
{
sub
query
:
'
title:"12345"
'
},
//
{query: 'title:"12345"', limit: [0, 1]},
{
sub
query
:
'
title:"NOTMATCHING"
'
},
// No index
{
query
:
'
modification_date:"12345"
'
},
{
query
:
'
modification_date:"12345"
'
,
limit
:
[
0
,
1
]},
{
query
:
'
modification_date:"NOTMATCHING"
'
}
{
sub
query
:
'
modification_date:"12345"
'
},
//
{query: 'modification_date:"12345"', limit: [0, 1]},
{
sub
query
:
'
modification_date:"NOTMATCHING"
'
}
);
})
.
fail
(
function
(
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment