SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Put your best practices away. The New Guy's Avatar
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    2,087
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Optimization / Design questions for rdbms

    So, I will be have over 1 million small text entries. Think twitter size. Each entry will have a variable mount of metadata. I am going to implement search on the entries and it's variable metadata. Should I store the metadata in the text field and do some string magic in the server side code to split it up? Or, should I implement a many to many like tag system for the metadata of the entries?

    Thanks.
    "A nerd who gets contacts
    and a trendy hair cut is still a nerd"

    - Stephen Colbert on Apple Users

  2. #2
    SitePoint Wizard webcosmo's Avatar
    Join Date
    Oct 2007
    Location
    Boston, MA
    Posts
    1,480
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    i would prefer the tagging option, since search would be lot easier to handle.

  3. #3
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,341
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    server side "string magic" is fine, as long as you are happy with doing a table scan of the entire table every time you want to search for something
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  4. #4
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,653
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I'd skip the RDBMS and use something like lucene to handle the tag (and full-text) search duties.


Bookmarks

Posting Permissions

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