MySQL Forums
Forum List  »  Quality Assurance

where with function
Posted by: marco pilolli
Date: June 03, 2011 02:20AM

hi
i have 2 servers
ho 2 server
the first one use an old release (5.0.xx)
when i do an explian of a query lie

select a from table where b=funzionepersonalizzata(data,idutente)

the query use the field B index

in a new server with mysql 5.1.54 (ubuntu 11.04 server)

thw same query don't use index e read all the rows, spending around 7 sec for run

where is the difference?

the new server is old server dump (data+structure)

thanks a lot

Options: ReplyQuote


Subject
Views
Written By
Posted
where with function
2548
June 03, 2011 02:20AM
1190
June 07, 2011 02:37AM


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.