I was looking through the tables in my database and devel_times is by far my largest table at 4.7MB with 150,000 records. I don't see any way within the devel interface to clear these records (the way you can clear the sites' cache)

I'd like to be able to do this before I run database backups so that my backup files aren't bloated with this somewhat useless data. Perhaps just a link in the devel block could accomplish this.

I assume it won't cause any problems if I just run an SQL command to clear the contents of this table, right ????

Comments

moshe weitzman’s picture

right - just empty via SQL. no problem there.

geek-merlin’s picture

Component: Code » devel
Priority: Minor » Normal

have problems with this too.

setting to normal because this bloats up automatic backup files.

solution might be to "thow away old log entries" with a cron oneliner.

moshe weitzman’s picture

for now, just clear the table with sql as needed. no problem there. patches are welcome for the clean on cron feature.

OpenChimp’s picture

Recently, I've been using the Backup & Migrate module, which lets you specify which tables are included in your database backups. You can select to leave the db table out entirely or to leave out just the data. It's a great module, so if you're having issues with you backup sizes being too large, I'd encourage you to check it out.

moshe weitzman’s picture

FYI, the storage of times and queries has been removed from HEAD. It may or may not come back in a future version.

salvis’s picture

Status: Active » Fixed

D5 is obsolete.

salvis’s picture

Status: Fixed » Closed (fixed)