Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Statistics Plugin-Data not saved/deleted #9879

Open
eitanwa opened this issue Feb 12, 2025 · 11 comments
Open

Video Statistics Plugin-Data not saved/deleted #9879

eitanwa opened this issue Feb 12, 2025 · 11 comments
Labels

Comments

@eitanwa
Copy link

eitanwa commented Feb 12, 2025

hay daniel

This plugin is relatively new if I'm not mistaken
and I came across it and activated it.
As you know, it has only one option
regarding the time period for deleting statistics
I set it to not delete

Since this is the only option in this plugin
(meaning There was no need to manipulate it beyond that.
I forgot about it

recently I noticed that all my statistics were deleted
for all 5 years that the system has been functioning!!!
I mean these statistics.
Assuming that the plugin is responsible for the data displayed in the screenshot

Image

I checked your demo site and saw that the data is saved
Now that I am an admin in the demo, I was able to enter the plugins screen
And your video statistics plugin is disabled.

So I'm almost certain that this is the root of the problem
Since I closed the plugin now
I'll know for sure tomorrow
If the data is saved
And I'll keep you posted

For now My question is
Is there a way to recover the data?

thanks

@eitanwa eitanwa added the bug label Feb 12, 2025
@DanielnetoDotCom
Copy link
Member

Unfortunately, there’s no way to recover the deleted statistics unless you have a backup.

The plugin doesn’t erase all data—it only removes older, detailed statistics while keeping essential info like views, likes, and other key metrics.

This cleanup is necessary because, over time, as the database grows, it can slow down significantly. Large databases lead to slower inserts, updates, and queries, which impacts overall performance. That’s why managing historical data is crucial to keep your system running efficiently.

@eitanwa
Copy link
Author

eitanwa commented Feb 14, 2025

Now it is certain this is the bug
When the Video Statistics plugin
is on the Do Not Delete Data mode

Image

it does delete the data!!!

These
Image

This is a mode that in order to check it on your system
take into account that it will delete yours

Question:
This plugin is supposed to delete this data that appears in the image I sent
from view info

or this data?

Image

or maybe both?
what means statistics table?

@eitanwa
Copy link
Author

eitanwa commented Feb 14, 2025

Unfortunately, there’s no way to recover the deleted statistics unless you have a backup.

The plugin doesn’t erase all data—it only removes older, detailed statistics while keeping essential info like views, likes, and other key metrics.

This cleanup is necessary because, over time, as the database grows, it can slow down significantly. Large databases lead to slower inserts, updates, and queries, which impacts overall performance. That’s why managing historical data is crucial to keep your system running efficiently.

By all the data, I mean the data here.

Image

And this is very, very necessary data!!!!

@DanielnetoDotCom
Copy link
Member

There are a lot different ways to delete it. including clickin in a button or command line to delete statistics. not only the plugin

I am not aware about any bug on this.

@eitanwa
Copy link
Author

eitanwa commented Feb 15, 2025

There are a lot different ways to delete it. including clickin in a button or command line to delete statistics. not only the plugin

I am not aware about any bug on this.

this is the bug
#9879 (comment)

sum
When the statistics plugin is set to not delete statistics, it does the opposite, it deletes them.

@eitanwa
Copy link
Author

eitanwa commented Feb 17, 2025

Now that I have disabled the plugin, the data is saved. This data is not deleted.

Image

@eitanwa
Copy link
Author

eitanwa commented Feb 17, 2025

By the way
Now that I understand that this plugin is also responsible for video history, I understand why it is necessary to delete data that burdens the system such as video history

Regardless of the bug it currently has
(which deletes data even though it is set not to delete)
This data specifically or this information here
should not be deleted from the system

Image

@gbrn
Copy link
Contributor

gbrn commented Feb 17, 2025

I also had problems with this plugin and lost data because of this plugin.
I don't know if this plugin helps or just gets in the way.
There could be an option of what should be deleted...

@eitanwa
Copy link
Author

eitanwa commented Feb 17, 2025

I also had problems with this plugin and lost data because of this plugin. I don't know if this plugin helps or just gets in the way. There could be an option of what should be deleted...

Agreed
The problem here is tricky
The option of not deleting actually deletes
That's why it was hard to understand

Now that I know it's also related to history
I understand that it probably also affected the data in the charts
Because it's deleted every day

Thank you for responding and reinforcing the importance of the topic.

What state is your plugin in?
Is it active?

@gbrn
Copy link
Contributor

gbrn commented Feb 17, 2025

My plugin is active. I'm going to do some tests, because I've been losing data too. My 90-day chart is always zero!
I never understand these errors and what's the point of having charts if the data is deleted.

Image

@eitanwa
Copy link
Author

eitanwa commented Feb 18, 2025

My plugin is active. I'm going to do some tests, because I've been losing data too. My 90-day chart is always zero! I never understand these errors and what's the point of having charts if the data is deleted.

Image

Active and which deletion option did you choose?

and what about those ?

Image

Is this data saved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants