I would like your opinion on which would be better.
1/ If I simply create an fulltextindex field called 'tags' to the rest of their details. I could then simply select any users where their keywords match those searched for.
However if I had a 100 million users you would have to do a full text search for 100
million entries.
How slow is a fullindex search if it is having to search a 100 million entries, bearing in mind it is only searching one field, and that field would be fully indexed? (only allowed ten keywords)
or
2/ I could create a table of keywords. This would contain 2 fields...
keyword | index-of-users-with-that-keyword.
when a keyword was searched it would find the keyword get the usernames and then search my other table to get the details of that user.
Basically what im asking is would suggestion number 1, take a fraction of a second to search a 100 million entries or many minutes?
thanks in advance.
2006-12-06
19:04:33
·
4 answers
·
asked by
jonnie b
1
in
Computers & Internet
➔ Programming & Design