
pothompson
User
Mar 23, 2009, 9:44 AM
Post #1 of 3
(759 views)
Shortcut
|
|
Speeding up viewers
|
Can't Post
|
|
I have created a section editor and imported approximately 10,000 records into the MySQL table. I'm trying to display a number of records from the table using the standard view code (list($records,$meta)=getRecords....) and am narrowing the search down using the where attribute. The where that I'm using is only relates to one column. I was wondering if there was any way of creating an index or similar to speed up this search as currently it seems to take a while. An example of the full code is $product_where ='CATEGORY="10" AND CATEGORY="34" AND CATEGORY="78"'; list($productsRecords, $productsMetaData) = getRecords(array( 'tableName' => 'products', 'where' => $product_where, )); Thanks - Paul.
|