search 1000000 rows

Discussion in 'PHP' started by Cinta April, Apr 27, 2008.

  1. #1
    hi i am trying to develope a database with a unique field so that when a user inputs a filed i'll have to check through all rows in mysql table. Is it possible to search through like 1000 000 rows to check for identical field or do we have to seperate the tables when the number gets too large?
     
    Cinta April, Apr 27, 2008 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you mean something like 'SELECT * FROM table WHERE column="value"' ?
     
    matthewrobertbell, Apr 27, 2008 IP
  3. Cinta April

    Cinta April Banned

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah i mean is there a limit to the number of rows where we can query suppose it gets very large?
     
    Cinta April, Apr 27, 2008 IP
  4. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #4
    The only limit is how much memory / space you have available, the query will require more the larger dataset you are looking through.

    However 100k+ rows isnt really that many to be querying against, especially if you are comparing numbers and you have decent indexes set up.
     
    m0nkeymafia, Apr 27, 2008 IP