Results 1 to 12 of 12

Thread: Searching large text fields [concluded]

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  2. #2
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    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................

  3. #3
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    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.

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Sorry, I meant CLOB. MySQL has a CLOB, doesn't it?

  5. #5
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    no, never heard of clob

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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.

  7. #7
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  8. #8

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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?

  9. #9
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629
    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.
    Like Archer? Check out some Sterling Archer quotes.

  10. #10
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  11. #11

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by The Hobo
    http://www.leftofreality.net/ is my personal site and has all the articles I've posted. Why do you ask?
    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.

  12. #12
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width