[resolved] Optimizing query need!
-
You use CONCAT in queryes, but it has very long execution time with cerrent code.
Please just replace
CONCAT(‘{$table_name}_’, {$primary_key})
with
CONCAT(‘{$table_name}_’, cast({$primary_key} as char))
in mixin.nextgen_table_extras.phpThis small change is allowed to perform query on my database for 0.8 seconds instead of 20
About problem: http://www.mysqlperformanceblog.com/2007/10/16/be-careful-when-joining-on-concat/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘[resolved] Optimizing query need!’ is closed to new replies.