By Paul Murray on Tuesday, 24 January 2017
Posted in General
Replies 15
Likes 0
Views 232
Votes 0
Hello SI Team

I have been told by my hoster. (Siteground)
That my database has exceeded the allowed size.
On my current plan I am only allowed 750MB.
They have given me until Friday to get this under control.

This is more or less the same thing as this here:

https://stackideas.com/forums/reducing-the-size-of-myphp-database-eb-blog-revisions

My Easy Blog Revisions are currently at 180MB

Has anything changed from the Stackideas side since last time?

Deleting 1000s of revisions per hand is painful.

And whilst the truncate command from last time was powerful it did mess up some stuff.

there has to be a better way?

thanks

Paul
Currently that was no other quickly way to delete those revision post from the composer.

I would suggest you increase the space from your database server.
·
Tuesday, 24 January 2017 19:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arlex

2 questions

What is the exact MySQL data base query that I need to double check the size of the Blog Revisions?

Even after deleting Blog Revisions one by one in the EB interface is there some kind of trash or similar that needs to be emptied?

thanks

Paul
·
Tuesday, 24 January 2017 20:51
·
0 Likes
·
0 Votes
·
0 Comments
·
What is the exact MySQL data base query that I need to double check the size of the Blog Revisions?

I only found out this sql query to show out all of your existing database total size :

SELECT table_schema "database",
sum(data_length + index_length)/1024/1024 "size in MB"
FROM information_schema.TABLES
GROUP BY table_schema


Even after deleting Blog Revisions one by one in the EB interface is there some kind of trash or similar that needs to be emptied?

if you delete that revision from the composer, you do not need to delete other thing, because once you delete one of the revision from composer, it will delete one of the revision record from this table #__easyblog_revisions

Hope this will help.
·
Wednesday, 25 January 2017 14:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex

From Site Ground:

I have actually found out that there was a cache in the Cpanel and our tool, which was calculating the Database size.

I have run the following query and found out that you have successfully decreased the Database size:



Code:
SELECT table_schema "DB Name",
Round(Sum(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
FROM information_schema.tables
GROUP BY table_schema;



the result was:


Code:
+--------------------+---------------+
| DB Name | DB Size in MB |
+--------------------+---------------+
| finalbug_nina | 499.4 |
| finalbug_sandbox | 265.1 |
| information_schema | 0.0 |
+--------------------+---------------+


I love Stackideas, the products the support pretty much every thing.

Buttttttt we all have a number one hate and this is it for me.

There should be some way to batch delete revisions.

Some how I managed to clear out 350MB of junk.

It was painful and scary and took about 5 hours but this time nothing got broken!!!

And I continue paying 155,40€ for hosting instead of upgrading and paying 287,40€ in a year!

I honestly do not understand why it is not possible to do some of the following in Easy Blog:

a) Set a Revision interval eg a copy made every 1/5/10 minutes
b) Set a limit to the number of revisions that are kept eg keep only the last 50?
c) Have some kind of way of selecting more than one revision at a time for deletion!

I sincerely hope this does not come across as being too cranky.
I mean it in a positive and constructive way...
If I misses any thing apologies in advance.

all the best

Paul
·
Wednesday, 25 January 2017 22:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex

From Site Ground:

I have actually found out that there was a cache in the Cpanel and our tool, which was calculating the Database size.

I have run the following query and found out that you have successfully decreased the Database size:



Code:
SELECT table_schema "DB Name",
Round(Sum(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
FROM information_schema.tables
GROUP BY table_schema;



the result was:


Code:
+--------------------+---------------+
| DB Name | DB Size in MB |
+--------------------+---------------+
| finalbug_nina | 499.4 |
| finalbug_sandbox | 265.1 |
| information_schema | 0.0 |
+--------------------+---------------+


I love Stackideas, the products the support pretty much every thing.

Buttttttt we all have a number one hate and this is it for me.

There should be some way to batch delete revisions.

Some how I managed to clear out 350MB of junk.

I only touched the Easy Blog Revisions table and maybe there was some junk left over from last time.

It was painful and scary and took about 5 hours but this time nothing got broken!!!

And I continue paying 155,40€ for hosting instead of upgrading and paying 287,40€ in a year!

I honestly do not understand why it is not possible to do some of the following in Easy Blog:

a) Set a Revision interval eg a copy made every 1/5/10 minutes
b) Set a limit to the number of revisions that are kept eg keep only the last 50?
c) Have some kind of way of selecting more than one revision at a time for deletion!

I sincerely hope this does not come across as being too cranky.
I mean it in a positive and constructive way...
If I misses any thing apologies in advance.

all the best

Paul


·
Wednesday, 25 January 2017 22:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry about the double posing this has happened to me before.
I go back to correct something and I think the quotes get mixed up and then this happens
·
Wednesday, 25 January 2017 22:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

You are not understanding the concept of revisions and this is why you have a hard time understanding the purpose of revisions. A revision, allows one to travel back time to change their copy of the blog post (If they have done some mistakes / incorrect changes). If revisions are purged automatically, don't you think this defeats the purpose of a revision altogether?

It's like creating a backup but the backups are automatically deleted after x days.
·
Thursday, 26 January 2017 00:53
·
0 Likes
·
0 Votes
·
0 Comments
·
But should not not be able like Joomla revisions to purge and dont allow more than say 4-5 revision in a setting and the rest are automatically deleted? Should be an important and useful setting I belive too.

Cheers!
·
Thursday, 26 January 2017 01:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, does Joomla allows you to truncate revisions and only store the recent "x" amount of revisions?
·
Thursday, 26 January 2017 12:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

I believe that I understand the concept of revisions.
Please see the screen shot below for how autosave worked in an older version of Final Cut Pro.
If I was working on a short form clip with many complex changes in a short time I cranked up autosave.
If I was working on some thing arty-farty with a couple of edits an hour I cranked down autosave.
This could even be dealt with in EB a simple slider rather than 100s of settings .
Slide for more safety and more revisions or less safety and less revisions.
Alternatively have some kind of cache clearing for revisions!

To compound matters I believe that even after clearing out the revisions there was some kind of cPanel / mySQL database cache issue.
I have no idea if this is just my database or if it happens with other people as well.
As of now I will continue to write as much as I can in a word processor and then copy and paste into the EB composer in the last minute.
As of now I want to stay on my current hosting plan and not pay 100€ extra a year for Revisions that I know I will never use.
I need to do the following every 6 months.
And I am not even a heavy blogger!

Best Case Scenario:
- 1000 times 3 clicks (2-3 hours)

Worst Case Scenario:
- mySQL data base truncation (1 min)
- cPanel Cache clear!
- Maybe an article rescue/clear up action (10 hours)

all the best

Paul
·
Thursday, 26 January 2017 14:24
·
0 Likes
·
0 Votes
·
0 Comments
·
In EasyBlog 5.1, we'll be allowing the admin to configure the number of most recent revisions to save and also the ability to clear up previous revisions if the author / admin doesn't want it
·
Thursday, 26 January 2017 16:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark

Thank you.
This will be amazing.

best

Paul
·
Thursday, 26 January 2017 17:21
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Paul
·
Thursday, 26 January 2017 17:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post