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

Clean up task #29

Open
tempo22 opened this issue Sep 14, 2015 · 3 comments
Open

Clean up task #29

tempo22 opened this issue Sep 14, 2015 · 3 comments

Comments

@tempo22
Copy link

tempo22 commented Sep 14, 2015

Hi,

I have a website where we have to store around 1.200.000 entities daily, those entities can be discarded after 24h.
Those entities are composed of a 3 fields ( text + 2 integer list ).
Currently, i used the message module for those entities but with the increasing amount of entities created each day, the purge cron task is taking more and more processing time.
The purge cron task is set to run every minutes, deleting 2000 row each time, using drush elysia cron task.

How can optimize the purge of those entities or at least make it easier on the proc ?

@amitaibu
Copy link
Member

A better approach would be a drush command to delete a bigger range of message, and triggered by cron.

@tempo22
Copy link
Author

tempo22 commented Sep 14, 2015

I believe you are talking about this command ? #23
Is this executing faster than the default message cron function ?

@amitaibu
Copy link
Member

Or write your own command according to your logic. @RoySegall can you please link to an example.

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

No branches or pull requests

2 participants