Remove outdated 'CREATE INDEX + performance tests required' TODO 14/130214/3
authorDariusz Michaluk <d.michaluk@samsung.com>
Fri, 19 May 2017 11:53:19 +0000 (13:53 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 29 May 2017 13:53:36 +0000 (15:53 +0200)
Although indexes are intended to enhance a database's performance,
they should not be used on small tables.
The tests have shown that there is no speed up on tables with 3k rows.

Change-Id: Id6ac9e6b47ef8978dacbcd1c2b71e8e6b9be02e2

db/db.sql

index 726ddc1..faba26c 100644 (file)
--- a/db/db.sql
+++ b/db/db.sql
@@ -71,9 +71,6 @@ license VARCHAR,
 FOREIGN KEY (app_id, uid) REFERENCES user_app (app_id, uid) ON UPDATE CASCADE ON DELETE CASCADE
 );
 
--- TODO CREATE INDEX + performance tests required
--- CREATE INDEX IF NOT EXISTS app_defined_privilege_index ON app_defined_privilege (app_id, uid);
-
 -- This table contains privilege name that is also stored in
 -- app_defined_privilege table.
 -- It's time to consider using INTEGER instead VARCHAR and store
@@ -86,9 +83,6 @@ license VARCHAR NOT NULL,
 FOREIGN KEY(app_id, uid) REFERENCES user_app (app_id, uid) ON UPDATE CASCADE ON DELETE CASCADE
 );
 
--- TODO CREATE INDEX + performance tests required
--- CREATE INDEX IF NOT EXISTS client_license_index ON client_license (app_id, uid);
-
 DROP VIEW IF EXISTS user_app_pkg_view;
 CREATE VIEW user_app_pkg_view AS
 SELECT