diff options
| author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-10-01 10:49:18 -0400 |
|---|---|---|
| committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-10-01 10:49:18 -0400 |
| commit | 09a0f90b9b0b5a24f7c204394a6f6144affb9e5f (patch) | |
| tree | 26a3a7980203581ed167cf31e704a5f5bf02a07e | |
| parent | 792b1faa70da3906b22a462c7e2132e761161bc8 (diff) | |
Remove indicies based on dp_pending.taken
The cost of maintaining the index kills performance.
| -rw-r--r-- | rtss14/createtables.sql | 4 | ||||
| -rwxr-xr-x | rtss14/database.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/rtss14/createtables.sql b/rtss14/createtables.sql index f3371e4..4949362 100644 --- a/rtss14/createtables.sql +++ b/rtss14/createtables.sql | |||
| @@ -86,8 +86,8 @@ CREATE TABLE dp_pending( | |||
| 86 | chunk_size INT UNSIGNED, | 86 | chunk_size INT UNSIGNED, |
| 87 | 87 | ||
| 88 | PRIMARY KEY (id), | 88 | PRIMARY KEY (id), |
| 89 | INDEX (id, taken), | 89 | -- INDEX (id, taken), |
| 90 | INDEX (taken), | 90 | -- INDEX (taken), |
| 91 | INDEX (ts_util), | 91 | INDEX (ts_util), |
| 92 | INDEX (cpu_cluster_size, gpu_cluster_size, is_worst_case, is_polluters, util_dist, period_dist, data_dist, state_dist, kernel_dist, cpu_dist, gpu_population, rho, is_dgl, is_p2p, ncopy_engines, chunk_size) | 92 | INDEX (cpu_cluster_size, gpu_cluster_size, is_worst_case, is_polluters, util_dist, period_dist, data_dist, state_dist, kernel_dist, cpu_dist, gpu_population, rho, is_dgl, is_p2p, ncopy_engines, chunk_size) |
| 93 | -- every permutation marks a unique configuration | 93 | -- every permutation marks a unique configuration |
diff --git a/rtss14/database.py b/rtss14/database.py index f445ab2..3a1ba50 100755 --- a/rtss14/database.py +++ b/rtss14/database.py | |||
| @@ -274,8 +274,7 @@ def __repair_design_points(conn): | |||
| 274 | c.execute('UPDATE dp_pending AS P ' | 274 | c.execute('UPDATE dp_pending AS P ' |
| 275 | 'JOIN dp_ptested AS T ON %s ' | 275 | 'JOIN dp_ptested AS T ON %s ' |
| 276 | 'JOIN sched_results as R ON P.ts_util=R.ts_util AND T.id=R.dp ' | 276 | 'JOIN sched_results as R ON P.ts_util=R.ts_util AND T.id=R.dp ' |
| 277 | 'SET P.taken=0 ' | 277 | 'SET P.taken=0 ' % |
| 278 | 'WHERE P.taken<>0' % | ||
| 279 | ' AND '.join(map(lambda x: 'P.%s=T.%s' % (x,x), [d for d in dp_col_names if d != 'ts_util'])) ) | 278 | ' AND '.join(map(lambda x: 'P.%s=T.%s' % (x,x), [d for d in dp_col_names if d != 'ts_util'])) ) |
| 280 | nrepaired = c.rowcount | 279 | nrepaired = c.rowcount |
| 281 | c.close() | 280 | c.close() |
