I have a site where I want to record how many unique views an entry gets. At the moment I'm storing each view in a table (see below) but I can't help feeling this is too heavy handed.
+--------+---------------+
| postid | remote_addr |
+--------+---------------+
| 1 | 192.168.0.0 |
| 2 | 127.0.0.1 |
+--------+---------------+
Obviously this requires at least one query per page, in addition to the rest of the page content, so is there a simpler/lighter way of doing this?