-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Cleanup function for ToSIC_EAV_DataTimeline table #3535
Comments
This was recently discussed in the Discord for DNN Community / 2sxc. I am very glad to -not- be alone regarding this (sometimes serious) problem! 2sxc and SQL Table Size Issues |
Additionally, we often know when we are creating this situation. So a really great alternate solution would be to provide a new parameter to the existing
|
And a third option would be a new setting named SaveHistory for all Content-Types. Always true by default to avoid compatibility issues, but allow Supers to be able to set it to |
I think the idea is great, BUT it would have to be a tweak API OR a settings Reason is that adding parameters works in Razor code (which has been just about the only use case in the past), but breaks in compiled code. So if Razor code uses a method, and the method is expanded in an update, things continue to work, because the line of code is recompiled the next time it's used. On the other hand, if any DLL is using this code, then it internally references that exact method signature, and would break if parameters are added. I see this happening a lot in other frameworks :( where they are forced to add more and more signatures, to prevent breaking. Since we've been using tweak APIs for just about everything, I think that's the way to go for now. If anybody would want to contribute this, feel free to give it a go ;). I would not have the resources to do this any time soon. |
I realize you can shoot down my guesses at possible solution suggestions easily, but we are presenting a problem and asking for any solution. The Dale Carnegie Method for Code (Jeremy's adapted version):
Another possible solution (2) might be to add a new method:
So then simply:
This option seems really nice to me because nothing will break and thanks to modern 2sxc IntelliSense, this will be easy to discover! |
Also, please note that I appear to have hijacked this Issue. @trouble2's hope was to have some sort of cleanup methods added to 2sxc.
|
Let's summarize: Scheduled Clean-Up@trouble2 wished for some kind of scheduled clean-up. We do not have this as a priority so nobody I know would volunteer to implement this. API to update data without History changes@jeremy-farrance wished for a new API to create / update data without adding history. I guess this too is an interesting idea but would require quite a bit of effort to do - and ATM would not be on our priorities. |
I'm submitting a
[x] feature request
...about
[x] other / unknown
Current Behavior / Expected Behavior
On some DNN installations which use 2sxc for a longer period of time, the ToSIC_EAV_DataTimeline table takes up a lot of space.
In most cases this is not a problem, but for optimisation and/or sql space limitations it would be a good idea to have some kind of cleanup functionality. Perhaps some scheduler and a setting in 2sxc where you can say delete everything older then ... ( 1 year, 6 months, 3 weeks, whatever),,,
Instructions to Reproduce the Problem
Your environment
General DNN/2sxc installations
The text was updated successfully, but these errors were encountered: