Hello all, I noticed when I logged into my MySQL kanboard database recently that my sessions (can’t remember the actual name) was full of entries, around 95,000 or so over the years.
Can I delete them so I got a month’s worth? I can’t seem to find a function or procedure in kanboard for it so I think I would just delete through phpMyAdmin.
yes this was too hard but I am slowly reading up on the mysql side. After seeing my sessions table having 40mb and 95k entries, I think it needs a clean. Other tables will also need some sort of looking into to keep the database a minimum size.
I will create a neww plugin for this, so that users can click a button to clean entries from the table. starting with sessions. Both your entries will be good options.
You’re more than welcome to collab on the repo, let me know, I will add you.
For me, this brings up the question, why such a table cleanup isn’t done by the nightly cronjob. Removing expired stuff from both, file system and database, is a typical maintenance job.
I dont know, my cron works daily, my actions work, notifications etc… but the table isnt touched… I dont know what cronjob checks for so I thought its by design that the table is so big.
I know, Im just trying to understand whether the database sessions table size is my local issue or a kanboard issue. If its a kanboard issue (no database cleaning via cronjobs by design/oversight) then I need to create a plugin.
But the database has been used since 2015 with all this data. The date showing in the screenshot was a manual migration when I couldnt upgrade kanboard.