-
Notifications
You must be signed in to change notification settings - Fork 672
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
Add more garbage collector rules #7545
Comments
I say yes, I've been thinking about that myself |
i think that "corruption" could be intended for a certain use case. Custom User Class with a custom table for additional entity data... so I do not think that check should be part of core |
One way to do this would be to switch to innodb and add foreign keys. Then On Wed, Nov 26, 2014, 11:05 PM Jeroen Dalsem notifications@github.com
|
That may be true, but it will not cover all the use cases + it's harder to implement and forces people to use innodb |
Another piece of "garbage" is old plugins #5063 |
What happened to gargabecollector doing clean up of orphaned rows? |
there are no secondary tables anymore, so those rules became obsolete |
There are still meta, annotations etc |
yeah but those were never cleaned up AFAIK |
This could help addressing #10770 if orphans entities (owner does not exist) were deleted. |
A recent issue #7518 is the reason i started this ticket. Maybe Elgg core should provide more garbage collector scripts by default. There is a lot of data that is never used again. Elgg should try to keep the data clean. There are multiple reasons why the garbage is heaping up, and it is not only related to coding problems. Sometimes it can also be due to connections getting dropped, or a server down or a configuration error. These situations cannot be prevented, thus we should take care of cleanup. Currently the garbage collector is doing that, but it is limited. There is way more garbage in the database than what is currently cleaned up by the garbage collector plugin.
In the past there was a plugin made by ColdTrick that did a lot more garbage collection. Maybe that plugin could be revisited and the extra garbage collections could be discussed here so they could be added to core.
The following tables are already cleaned up by Elgg by the current garbage collector plugin
The garbage collector extended plugin (https://github.com/ColdTrick/garbagecollector_extended) provided the following extra checks that we could add to the garbage collector core plugin
Cleanup the following Elgg tables:
removes entities where owner_guid does not exists as entity anymoretoo dangerousprivate_settings (removes private settings on entities that do not exist anymore)table no longer existsriver (removes river items where object OR subject does not exist anymore)no doing this, could be handled by the viewAre these garbage collectors we want in core?
The text was updated successfully, but these errors were encountered: