Skip to content

Tag: mysql

determine actions over period of time PHP MySQL

I don’t have any code or database to display, because I am in the planning stage, and I can’t figure out the correct way to do this. I want to determine if a user has performed a specific action each day over the course of a week. If they have I want to perform an action. Each time there is

CodeIgniter count too slow – pagination

I’m trying to make a search using CodeIgniter faster. I use the pagination library and I have to count the records returned from the query on a table which contains more than 1.2 million records. The num_rows() function is very slow ( takes approximately 3 seconds ) Any solutions? Answer As the comments…