|
-
Oct 20th, 2003, 04:26 AM
#1
Searching large text fields [concluded]
Suppose there's a MySQL table that has a BLOB field storing a huge amount of text. Further, suppose I were to perform a search on that table, looking for some specific word.
Would MySQL handle it well? What I imply by this question is, is it OK to have large text fields in a table, and perform queries on them, or would it be safer to have, instead of the large text field, a path to a text file containing all that text?
Tell me if I'm not clear enough.
Last edited by mendhak; Oct 21st, 2003 at 01:00 AM.
-
Oct 20th, 2003, 08:08 AM
#2
Lively Member
large databases make a seperated search table.
which contains a list of words which can be found in the 'blob'.
this to speed up things.
http://www.raketje.com coming..............soon................
-
Oct 20th, 2003, 10:24 PM
#3
Frenzied Member
why are you going to put texct in a blob? that is for images, not text.
your search would be faster if you used a link instead.
-
Oct 20th, 2003, 11:29 PM
#4
Sorry, I meant CLOB. MySQL has a CLOB, doesn't it?
-
Oct 20th, 2003, 11:58 PM
#5
Frenzied Member
-
Oct 21st, 2003, 12:59 AM
#6
OK, I went through mysql.com, and saw they have MEDIUMTEXT, TEXT, and LONGTEXT.
Anyways, I'll go with the "store a URL" option, until the search performance becomes a major issue with me.
Thank you.
-
Oct 21st, 2003, 10:53 PM
#7
Stuck in the 80s
How slow would it be to have MySQL search a TEXT field for words? I do it that way with my news management program and have never noticed any performance issues.
Of course, I've never really posted HUGE amounts of text, either.
-
Oct 21st, 2003, 11:26 PM
#8
Originally posted by The Hobo
How slow would it be to have MySQL search a TEXT field for words? I do it that way with my news management program and have never noticed any performance issues.
Of course, I've never really posted HUGE amounts of text, either.
Can you paste an example of some news article you've posted here?
-
Oct 22nd, 2003, 11:27 AM
#9
this might be a bit late, but my site (http://david.complex-sys.com) has > 60 journal posts I've made that have obscene amounts of text. The search option (http://david.complex-sys.com/index.php?act=search_do) searches the articles for whatever you enter as a query. The entries are all stored in TEXT fields in my MySQL table, and I just query them all.. It's fairly efficient, and doing it in text files is going to take longer depending on how large the text file is. If it takes a while to open the text file, you'll have to wait, then you'll have to search it.. and now I just think I'm rambling, so, anyway, doing it with MySQL instead of a text file is going to make it faster.
-
Oct 22nd, 2003, 03:24 PM
#10
Stuck in the 80s
Originally posted by mendhak
Can you paste an example of some news article you've posted here?
http://www.leftofreality.net/ is my personal site and has all the articles I've posted. Why do you ask?
-
Oct 22nd, 2003, 11:45 PM
#11
I went through your site some (nice site, btw). The search seems perfectly fine. My articles are a little longer than that, usually, so I guess switching to TEXT would be safe enough. 
I've never heard of the Super Hero named "Green Lantern." You've got an extensive amount of information for this one comic strip! 
Thx.
-
Oct 23rd, 2003, 10:01 AM
#12
Stuck in the 80s
Originally posted by mendhak
I've never heard of the Super Hero named "Green Lantern." You've got an extensive amount of information for this one comic strip!
Comic book. And at one time it was various comic books. Started in the 1940s. If you think I have a lot of information, you should see www.glcorps.org
Now THEY'RE obsessive.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|