View Issue Details

IDProjectCategoryView StatusLast Update
0002357Composrcore_database_driverspublic2017-11-21 22:51
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0002357: Force index support
DescriptionAdd code to force indexes on table names. Drivers not supporting it would do a null-op.
Additional InformationWe can clean up a lot of code like:

            $query = 'SELECT * FROM ' . $this_ref->connection->get_table_prefix() . 'f_topics top';
            if (strpos(get_db_type(), 'mysql') !== false) {
                $query .= ' USE INDEX (topic_order_4)';
            }

to like:

            $query = 'SELECT * FROM ' . $this_ref->connection->table_with_index($this_ref->connection->get_table_prefix() . 'f_topics', 'topic_order_4', 'top');
TagsNo tags attached.
Time estimation (hours)3
Sponsorship open

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-03-30 13:43 Chris Graham New Issue
2017-11-21 22:51 Chris Graham Status non-assigned => resolved
2017-11-21 22:51 Chris Graham Resolution open => fixed
2017-11-21 22:51 Chris Graham Assigned To => Chris Graham