Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
80b4164d
Commit
80b4164d
authored
Apr 03, 2017
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add indexes on Hstore/JSON (#1173)
parent
22a7ca16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
e2e-tests/sbperf.pl
e2e-tests/sbperf.pl
+11
-5
No files found.
e2e-tests/sbperf.pl
View file @
80b4164d
...
...
@@ -69,7 +69,6 @@ my @legend = (
);
my
$tests
=
{
(
$ENV
{
LLNGTESTLDAP
}
?
(
...
...
@@ -191,6 +190,9 @@ my $tests = {
'
DROP INDEX IF EXISTS _s1
',
'
DROP INDEX IF EXISTS _u1
',
'
CREATE UNLOGGED TABLE sessions (id varchar(64) not null primary key, a_session hstore)
',
"
CREATE INDEX uid1 ON sessions ( (a_session -> '_whatToTrace') )
",
"
CREATE INDEX _s1 ON sessions ( (a_session -> '_session_kind') )
",
"
CREATE INDEX _u1 ON sessions ( (a_session -> '_utime') )
",
],
},
PgJSON
=>
{
...
...
@@ -207,6 +209,9 @@ my $tests = {
'
DROP INDEX IF EXISTS _s1
',
'
DROP INDEX IF EXISTS _u1
',
'
CREATE UNLOGGED TABLE sessions (id varchar(64) not null primary key, a_session json)
',
"
CREATE INDEX uid1 ON sessions ( (a_session ->> '_whatToTrace') )
",
"
CREATE INDEX _s1 ON sessions ( (a_session ->> '_session_kind') )
",
"
CREATE INDEX _u1 ON sessions ( (a_session ->> '_utime') )
",
],
},
};
...
...
@@ -343,10 +348,11 @@ print <<EOT;
| Backend | Insert 1000 | Get 1 | Purge 500 | Parse all | 1 letter | 1 user |
+-----------------------------------------+-------------------------------------+-----------------------------------+
EOT
for
(
my
$i
=
0
;
$i
<
@legend
;
$i
+=
2
)
{
my
$type
=
$legend
[
$i
+
1
];
next
unless
(
$times
->
{
$type
});
printf
"
|%40s |%11.5f | %.5f | %7.4f | %.5f | %.5f | %.5f |
\n
",
$legend
[
$i
],
for
(
my
$i
=
0
;
$i
<
@legend
;
$i
+=
2
)
{
my
$type
=
$legend
[
$i
+
1
];
next
unless
(
$times
->
{
$type
}
);
printf
"
|%40s |%11.5f | %.5f | %7.4f | %.5f | %.5f | %.5f |
\n
",
$legend
[
$i
],
map
{
$times
->
{
$type
}
->
{
$_
}
}
qw(insert getSession purge read getLetter getUid)
;
}
...
...
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