Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
98136cee
Commit
98136cee
authored
Aug 15, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a key to the users table to speed up image listing, it was taking
thirty seconds!
parent
ced53bd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
sql/database-create.sql
sql/database-create.sql
+2
-1
sql/updates/4/651
sql/updates/4/651
+19
-0
No files found.
sql/database-create.sql
View file @
98136cee
...
...
@@ -5427,7 +5427,8 @@ CREATE TABLE `users` (
KEY
`unix_uid`
(
`unix_uid`
),
KEY
`status`
(
`status`
),
KEY
`uid_uuid`
(
`uid_uuid`
),
KEY
`uid`
(
`uid`
)
KEY
`uid`
(
`uid`
),
KEY
`nonlocal_id`
(
`nonlocal_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
--
...
...
sql/updates/4/651
0 → 100644
View file @
98136cee
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBKeyExists("users", "nonlocal_id")) {
DBQueryFatal("ALTER TABLE users add " .
" KEY `nonlocal_id` (`nonlocal_id`)");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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