Re: Optimization for complicated query
Posted by:
Aftab Khan
Date: August 02, 2012 11:10AM
Try this index and refresh EXPLAIN output:
Alter table camera add index (id, access_lvl);
>`password` blob
I think you don't need BLOB for password. Try varbinary(256).
>`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT
>UNIQUE KEY `id` (`id`)
You can use PRIMARY KEY (`id`);
Similarly, consider INT UNSIGNED instead of BIGINT
Edited 1 time(s). Last edit at 08/02/2012 12:00PM by Aftab Khan.
Subject
Views
Written By
Posted
1811
August 01, 2012 11:34AM
1000
August 02, 2012 02:17AM
1071
August 02, 2012 03:18AM
Re: Optimization for complicated query
1003
August 02, 2012 11:10AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.