You are here: Re: Optimize query « MsSQL Server « IT news, forums, messages
Re: Optimize query

Posted by Slower Than You on 11/17/06 19:26

newtophp2000@yahoo.com wrote:

> The table in question is quite simple and is created as follows.
> There are no indexes on the table:
>
> create table user_details (id integer, detail_1 varchar(50),
> detail_2 varchar(50)
>
>
> Is there a way to make it go faster?

Well I'm no expert, but surely the way to make it go faster is to index
detail_1 and detail_2?

For every record selected in t1, the engine is comparing 40,000 records
in t2. 40,000 x 40,000 is 1,600,000,000 operations.

Of course, I might be talking nonsense...
--
SlowerThanYou

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация