On 11-08-07 03:20 PM, shawn wilson wrote:
It can be sped up (slightly) with an index.

Indexes in SQL don't normally speed up sorting. What they're best at is selecting a limited number of records, usually less than 10% of the total. Otherwise, they just get in the way.

The best you can do with a database is to keep the table sorted by the key most commonly used. This is different than an index. An index is an additional file that records the keys and the offset to the record in the table file. The index file is sorted by its key.


--
Just my 0.00000002 million dollars worth,
  Shawn

Confusion is the first step of understanding.

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

"Make something worthwhile."  -- Dear Hunter

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to