MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 27th, 2000, 12:49 PM
weldonj2 weldonj2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 36 weldonj2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I asked a question about indexing with a version of Mysql prior to 3.23, and didn't get a response. My question is going to be repeated at the bottom, but now I realize I could answer it if anyone knew where documentation for MySql for older versions. I've found download sites for older versions but no documentation.


My old question:
I read that in versions of mysql prior to 3.23 (my host has 3.21 I believe), that if you want mysql to use an index you must "use columns of the same type for comparison purposes" otherwise MySql won't use the index.
I'm confused exactly what this means, and how it will affect me.

Say I have a table with many columns among which are the columns category(set) and time(time). Ideally, I will be selecting from the various categories based on time. So let's say that I want to select the most 5 entries of category X. I would do a select on category X ordered by time- I assume. Assuming this is the case, my question is about the indexing. Does this statement at the top mean it will just waste space to index? If not, should I index category and time separately, or as one index. And does it make since to index set fields which my category field will be?


And thanks for the help in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > One more try-indexing and question about old manuals


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT