Quantcast
Channel: Questions in topic: "information_schema"
Viewing all articles
Browse latest Browse all 14

avoiding the use of SELECT * FROM information_schema

0
0

Hello i want to to improve the performance of this query by adding a cache for this query or look for a way to optimize it by avoiding the use of SELECT * FROM information_schema.

SELECT *FROM information_schema.key_column_usage AS kcu
INNER JOIN information_schema.referential_constraints AS rc
ON ( kcu.constraint_name = rc.constraint_name
AND kcu.constraint_schema = rc.constraint_schema )
WHERE kcu.table_schema = 'joseph79_tiny'
AND kcu.table_name = 'options'
AND rc.table_name = 'options'

SELECT*FROM information_schema.key_column_usage AS kcu
INNER JOIN information_schema.referential_constraints AS rc
ON (
kcu.constraint_name = rc.constraint_name
AND kcu.constraint_schema = rc.constraint_schema ) wh ere kcu.table_schema = 'joseph79_tiny'
AND kcu.table_name = 'links'
AND rc.table_name = 'links'

Can someone help me please


Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images