Multiple primary keys in wp_post_views table
-
I’ve been looking at the way the post counts are stored so I can extract an informative report and I’ve found a couple of issues.
Firstly, id, type & period are all set as primary keys; consequently whenever I browse that table, the sort by drop down is flashing and the whole database freezes up.
Secondly, the column ‘id’ should really be named something else because it’s the same as the column name in wp_posts meaning that any query involving both tables won’t run because the column ‘id’ is seen as ambiguous.
Can you address this please?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Multiple primary keys in wp_post_views table’ is closed to new replies.