php - advance click counter mysql or flat file -


Thank you for the first time.

What is the best way to create an advance click counter (example idea [today] | [tomorrow] [this week] [last week] [this month] [last month] [all time]) .

Is it better to use this flat file or

ID (type: int (11)) link_id (type: int (11)) date (type: date)) counter (Type: int (11))

Please advise me what is the most effective way to do this.

SQL data used with proper index is essentially stored on disk, which is more FACT Index Finds the fastest index of specific records / data.

Your plan should look like this:

  link (Id: int, href: string) clicks (link_id: int, time: int, counter: int)  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -