#3657 closed New feature (fixed)

Allow disable OPTIMIZE TABLE queries in config file

Reported by: matt Owned by:
Priority: normal Milestone: 1.10 - Piwik 1.10
Component: Core Keywords:
Cc: Sensitive: no


Some very high traffic user reports that the OPTIMIZE TABLE query run at the end of the log purge, is causing trouble and sql queries queuing. We should at least allow to disable the OPTIMIZE queries via config file setting,

and the proper ultimate fix will be to have Piwik _not_ require Mysql for tracking anymore SEE #3632

Change History (1)

comment:1 Changed 16 months ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

in [7738] fixing #3657 NEW config setting

; By default Piwik runs OPTIMIZE TABLE SQL queries to free spaces after deleting some data.
; If your Piwik tracks millions of pages, the OPTIMIZE TABLE queries might run for hours (seen in "SHOW FULL PROCESSLIST \g")
; so you can disable these special queries here:
enable_sql_optimize_queries = 1

Note: See TracTickets for help on using tickets.