Viewing Issue Simple Details |
ID |
Category |
Type |
Reproducibility |
Date Submitted |
Last Update |
0001154 |
[In-Portal CMS] Database |
refactoring |
always |
2011-11-01 22:25 |
2012-07-25 05:32 |
|
Reporter |
alex |
View Status |
public |
|
Assigned To |
alex |
Priority |
normal |
Resolution |
fixed |
|
Status |
closed |
|
|
|
|
Summary |
0001154: Optimization of TableFound function |
Description |
Class kDBConnection has TableFound function, that does "SHOW TABLES LIKE TableName" each time it is called with a new table name.
The way of improving it:
- get list of all tables on first function call and then do in_array on every repeated call |
Additional Information |
I planned this optimization to perform specific actions only, when specific tables are found (for 0001153 task). Right now I think, that it's better to use kApplication::findModule method rather, then implementing this task. |