Serious performance issue
-
New Relic shows that the slowest plugin on several WordPress instances is Simple History.
For example, the following SQL query takes almost 5 seconds on high performance server:
# Query_time: 4.892989 Lock_time: 0.000226 Rows_sent: 20 Rows_examined: 1392818 # Rows_affected: 0 Bytes_sent: 4616 SET timestamp=1656344904; /*NO_SELECT_FOUND_ROWS*/ SELECT SQL_CALC_FOUND_ROWS h.id, h.logger, h.level, h.date, h.message, h.initiator, h.occasionsID, count(t.repeated) AS subsequentOccasions, t.rep, t.repeated, t.occasionsIDType, c1.value AS context_message_key FROM wp_simple_history AS h LEFT OUTER JOIN wp_simple_history_contexts AS c1 ON (c1.history_id = h.id AND c1.key = "_message_key") INNER JOIN ( SELECT id, IF(@a=occasionsID,@counter:=@counter+1,@counter:=1) AS rep, IF(@counter=1,@groupby:=@groupby+1,@groupby) AS repeated, @a:=occasionsID occasionsIDType FROM wp_simple_history AS h2 # First/inner where WHERE 1 = 1 AND logger IN ("SimpleCommentsLogger", "SimpleCoreUpdatesLogger", "SimpleExportLogger", "SimpleLogger", "SimpleMediaLogger", "SimpleMenuLogger", "SimpleOptionsLogger", "SimplePluginLogger", "SimplePostLogger", "SimpleThemeLogger", "SimpleUserLogger", "SimpleCategoriesLogger", "AvailableUpdatesLogger", "FileEditsLogger", "SH_Privacy_Logger", "SH_Translations_Logger", "SH_Jetpack_Logger", "PluginUserSwitchingLogger", "PluginWPCrontrolLogger", "PluginEnableMediaReplaceLogger", "Plugin_UltimateMembers_Logger", "Plugin_LimitLoginAttempts", "Plugin_Redirection", "Plugin_DuplicatePost", "Plugin_ACF", "Plugin_BeaverBuilder") # lastdays AND date >= DATE(NOW()) - INTERVAL 1 DAY ORDER BY id DESC, date DESC ) AS t ON t.id = h.id WHERE # Outer/Second where 1 = 1 GROUP BY repeated ORDER BY id DESC, date DESC LIMIT 0, 20;
Is it possible to speed it up? Many thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Serious performance issue’ is closed to new replies.