Doesn't matter, it's the size of the data and the amount you're deleting.
Let's say that your reports:prune upto=2 unit=wk is ultimately going to
delete 100k records because you've never pruned the database before.
reports:prune upto=2 unit=wk, 100k, time: 3600s
By breaking it up, it'll run faster because large deletes can cause poor
performance in Mysql.
reports:prune upto=9 unit=wk, deletes: 9k, time: 280s
reports:prune upto=8 unit=wk, deletes: 11k, time: 250s
reports:prune upto=7 unit=wk, deletes: 10k, time: 251s
reports:prune upto=6 unit=wk, deletes: 12k, time: 239s
reports:prune upto=5 unit=wk, deletes: 11k, time: 205s
reports:prune upto=4 unit=wk, deletes: 11k, time: 180s
reports:prune upto=2 unit=wk, deletes: 22k, time: 200s
Running it nightly with a fully prune data set.
reports:prune upto=2 unit=wk, deletes: 1.5k, time: 25s
** I made up all these numbers up, but the performance ratio should be
roughly correct based on past experience. ymmv. **
Also the Rake task will load the id of the records it plans to delete
into memory. This can be quite large and is another reason to break it
into smaller chunks.
Ramin
>
https://groups.google.com/d/__topic/puppet-users/7-__sjp1Ef1p0/unsubscribe
> <
https://groups.google.com/d/topic/puppet-users/7-sjp1Ef1p0/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> puppet-users+unsubscribe@__
googlegroups.com
> <mailto:
puppet-users%2Bunsu...@googlegroups.com>.
> <mailto:
puppet...@googlegroups.com>.
> Visit this group at
http://groups.google.com/__group/puppet-users
> <
http://groups.google.com/group/puppet-users>.
> For more options, visit
https://groups.google.com/__groups/opt_out
> <
https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
puppet-users...@googlegroups.com.