wp_bbas performance
-
Thank you for your work on this plugin. The performance is much better in this rewritten version than previous ones. I currently host in Azure w/ ClearDB and am working against that setup as far as performance. The previous version was not workable.
That’s why I’m monitoring queries and happened to look at the wp_bbas table. I noticed that since installing last night it is putting multiple entries into the table for each user, per page view. I’m well over 500 entries already just overnight w/ only 20 or so users just logging in and poking around.
Is this expected? My initial assumption was you’d like only one entry per user in this table. Although I see a status column as well, so I’m not sure. There is a REPLACE statement trying to run but it does not seem to be replacing, just inserting. I’m not as familiar with MySQL syntax but I believe you have to specify the primary key for it to know which row to replace.
REPLACE INTO
wp_bbpas
(userid
,date_recorded
,status
)
VALUES (‘1’, ‘2016-04-25 12:07:45’, ‘1’)Note the primary key ‘id’ is not specified. Otherwise it just seems to insert.
I’m also looking at the query for the 24 hours active users as it is one that gets marked by the query monitor and I worry that it is going to get worse as this table grows this quickly. I also have one user account that is showing multiple times within the 24 hrs in the widget. I’ll send an update once I figure out that one.
- The topic ‘wp_bbas performance’ is closed to new replies.