Jump to content

Recommended Posts

Hy i have a bit of a dilemma :-*

 

i have a bit of a dilemma,  am making a keyword database and am stuck with few 2 options that i can think of.

 

1. use a auto increment row together with a crc row which represents the value of the keyword, so all in all  2 int rows and 1 varchar row

 

2. use just a simple varchar row and reference it.

 

but here is the tricky part: i have make 2 indexes in the first case. One for the crc value and one for the auto increment value. And in other one i need only 1 index which would hit 100%of the time while the first one would have duplicate entries (crc values are not unique) so i would have to post calculate it...

 

My question is which is more smart/faster to use the index on a varchar column or to use 2 int indexes??

 

Keywords can become pretty long more than 25 chars and can also be small like 4-5 chars...

 

 

AND there will be no deletes means no delete and mazbe some small edits but not in the row that is indexed.

Link to comment
https://forums.phpfreaks.com/topic/222731-crc-vs-varchar/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.