• if you

    select * from MillionBillionRowTable

    That takes a lot of time.

    period.

    you are returning a ton of data, and that requires resources.

    the only way to speed that up is with hardware.(RAM, SSD's, Gigabit+ NIC.etc)

    you can help a little, by only selecting real data you need, to reduce the amount of data(but not the # of rows) like this:

    SELECT id,email from MillionBillionRowTable

    as a DBA, you can tune things with WHERE statements:

    select * from MillionBillionRowTable WHERE email = 'lowell@somedomain.com'

    that statement might be really slow, as it would be a table scan unless the column was already indexed.

    if i added an index on the email column, it would probably be faster...much faster and use anindex seek.

    '

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!