Advanced Database

Hello,

I’m not sure if this goes under PHP or Database

I have a database with over 100k rows of search results and tracking information.

When i try query and compile a report it takes FOREVER… is there any techniques to run faster queries ?

the database columns are

id | ipaddress | page | product | timedate | se_keywords

Thanks!

Define indexes on the columns you use to filter rows (i.e. the WHERE clauses and JOIN conditions of the query). If you do that, 100k rows should be no problem at all.

lol

with indexes

:slight_smile:

yeah i know about indexes… i just wasn’t sure if there’s a different method…

how do big companies handle hundred thousands of records, millions possibly… Definitely if you’re tracking thousands of users accessing pages daily, and products.