Support

Admin Tools

#22620 New Feature Request

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 12 May 2015 10:45 CDT

earthrat
 Hoping this is the right place to ask for feature requests because I think I have a good one if it is possible?

I find that there are quite a few extensions that abuse the database tables with redundant crap, like many calendar tools and event tools to name a few. It would be great if there was a way to have Admin Tools scan the database for excessive size and give us the option to dump them. It is a pain to have to go into phpmyadmin and open it from there to find these abuser tables. So if it is possible to add this feature I would be grateful and I am sure a number of others would be too.

nicholas
Akeeba Staff
Manager
Danger, Will Robinson! Indiscriminately removing data based on the sheer data size alone WILL lead to subtle and sometimes tragic problems with the operation of your site. I can think of quite a few reasons why such a feature would function with as much grace as a sledgehammer given to a meth head. My top reasons are:

  • Items with ACL privileges. It's impossible to know which record in the #__assets table is linked to that record you so conveniently zapped. End result: broken permissions and all Hell breaks loose.
  • Items with tags, content versioning or otherwise using the Joomla! UCM. Same as above but with half a dozen different tables.
  • Related records. Let's have a simple example. You have books, chapters and articles. For some reason the chapters table gets too long and in a fit of fury you decide to delete it. Now your articles are orphan. At best, the articles table has just gotten a lot of unnecessary baggage. Usually it's the worst case scenario: the extension will crap its pants and cry for its daddy to pick it up.
  • Removing important business data / data required by regulatory authorities. Invoices, transaction records, audit records etc. What do they all have in common? They are lots of data and if you delete them you are looking at a big fine or jail time.


Basically no. I won't implement that. If you ever see me implementing such a feature please call the authorities and have them check me in to an asylum as soon as possible.

I know what is your use case. You have a lot of extensions writing log data to the database and not giving you an option to keep their size in check. Ask their developers to offer you an option to purge this data. When we had a similar request for Admin Tools' WAF Exceptions log we implemented it; not a big deal.

The reason to ask the developer is that the developer of each extension and the developer alone knows how to PROPERLY delete data with enough safeguards and the necessary code to assure data integrity and prevent major issues with the operation of your site. You should never, EVER delete data by hand unless You Know What You Are Doing™. Chances are that if you didn't write the extension yourself you don't really know what you're doing and there's a good chance you're unwittingly planting a time bomb in your site. Log data are usually safe to delete unconditionally but anything else usually isn't.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!