[development] optimize table in cron
Bèr Kessels
ber at webschuur.com
Mon Dec 5 08:19:18 UTC 2005
Op maandag 05 december 2005 07:42, schreef Dries Buytaert:
> On 05 Dec 2005, at 04:29, David K Norman wrote:
> > Has it ever been discussed to run a query to optimize some of the more
> > active tables in MySQL during cron.php runs? For example 'OPTIMIZE
> > TABLE
> > watchdog;'
>
> OPTIMIZE TABLE is a MySQL-ism; it's not ANSI SQL.
MySQL.inc is not included in the module hooks AFAIK. so adding a hook_cron to
mysql.inc is not an option.
This could be added in a conditional structure to dba.module
Ber
More information about the development
mailing list