Merge lp:~ted/indicator-appmenu/db-now-with-indexes into lp:indicator-appmenu/0.4
Proposed by
Ted Gould
Status: | Merged |
---|---|
Approved by: | Mikkel Kamstrup Erlandsen |
Approved revision: | 174 |
Merged at revision: | 139 |
Proposed branch: | lp:~ted/indicator-appmenu/db-now-with-indexes |
Merge into: | lp:indicator-appmenu/0.4 |
Prerequisite: | lp:~ted/indicator-appmenu/hud |
Diff against target: |
190 lines (+33/-7) 11 files modified
.bzrignore (+1/-0) src/Makefile.am (+16/-1) src/create-db.h (+4/-0) src/create-db.sql (+2/-1) src/hud-verify-app-info.c (+2/-1) src/usage-tracker.c (+2/-1) tests/Makefile.am (+2/-3) tests/test-usage-db-ancient.c (+1/-0) tests/test-usage-db-old.c (+1/-0) tests/test-usage-db-simple.c (+1/-0) tests/test-usage-db-testapp.c (+1/-0) |
To merge this branch: | bzr merge lp:~ted/indicator-appmenu/db-now-with-indexes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen (community) | Approve | ||
Review via email: mp+90204@code.launchpad.net |
Description of the change
Adding an index to the creation of the db. But, also refactoring so there's one place to put this.
To post a comment you must log in.
72 create table usage (application text, entry text, timestamp datetime);
73 +create index if not exists application_index on usage (application);
You might want to also 'create table if not exists ...' for the main table.
143 === modified file 'tests/ test-usage- db-ancient. c' usage-db- ancient. c 2012-01-25 20:43:26 +0000 usage-db- ancient. c 2012-01-25 20:43:27 +0000
144 --- tests/test-
145 +++ tests/test-
146 @@ -27,6 +27,7 @@
147 #include "usage-tracker.h"
148 #include "usage-tracker.c"
149 #include "utils.c"
150 +#include "create-db.c"
Is it not #include "create-db.h". That is s/.c/.h/ ? Same for all test files.