Search the web
Sign In
New User? Sign Up
ydn-php · Yahoo! PHP Developer Group (CLOSED)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Query optimization problem????? i need help!!!!!!!   Message List  
Reply | Forward Message #300 of 335 |
Re: [ydn-php] Re: Query optimization problem????? i need help!!!!!!!

u may check full text index in that field ... and then explain that query

On Wed, Nov 19, 2008 at 12:03 PM, Johnny Fuery <jj@...> wrote:

And on the fifth day, god said, "let there be indexing".



On Tue, Nov 18, 2008 at 8:29 PM, jarickuo <jarickuo@...> wrote:

--- In ydn-php@yahoogroups.com, "abhijit4u_2005" <abhijit4u_2005@...>
wrote:


>
> I want to retrieve those name whose last name starts with any alphabet
> (e.g T%) but the problem is on that table there are more then 8lakhs
> entries are there,it's take lot of time, the database is: MySql and
> query as follows:
> "SELECT name FROM `userinfo01` where `lastName` like 'T%'"
>
> some body help me that how can i optimize that query????????
>

Maybe you can try explain to verify your performance of query.




--
Johnny Fuery
Principal Engineer
jj@...
925.997.3878 Direct/Mobile
925.997.4107 Main
510-836-0915 Fax
Fuery Solutions
1736 Franklin Street, Suite 350
Oakland, CA 94612
http://fuerysolutions.com




--
Abdelrahman Salem

Web Developer
Maktoob.com Inc
Skype : abedsalem2003
00962788153302
http://as7ab.maktoob.com/abedsalem
<a href="http://as7ab.maktoob.com"><img src="http://www.as7ab.maktoob.com/images/header/logo.gif"/></a>


Wed Nov 19, 2008 7:52 pm

abedsalem2003
Offline Offline
Send Email Send Email

Forward
Message #300 of 335 |
Expand Messages Author Sort by Date

I want to retrieve those name whose last name starts with any alphabet (e.g T%) but the problem is on that table there are more then 8lakhs entries are...
abhijit4u_2005
Offline Send Email
Nov 19, 2008
4:22 am

... Maybe you can try explain to verify your performance of query....
jarickuo
Offline Send Email
Nov 19, 2008
4:36 am

And on the fifth day, god said, "let there be indexing". ... -- Johnny Fuery Principal Engineer jj@... 925.997.3878 Direct/Mobile 925.997.4107 Main ...
Johnny Fuery
jfuery
Offline Send Email
Nov 19, 2008
3:36 pm

u may check full text index in that field ... and then explain that query ... -- Abdelrahman Salem Web Developer Maktoob.com Inc Skype : abedsalem2003 ...
Abderahman salem
abedsalem2003
Offline Send Email
Nov 19, 2008
7:56 pm

the query looks perfect... just add a BTREE Index to last name to speed up the retrieval Your's Truly, Mohtashim Shaikh On Wed, Nov 19, 2008 at 9:29 AM,...
Mohtashim shaikh
moshim_sk
Offline Send Email
Nov 19, 2008
3:36 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help