-
Notifications
You must be signed in to change notification settings - Fork 52
rake task to recreate capped collection when size is changed #49
Comments
Good idea. Does this rake task should migrate data from old collection? |
for me it's not important but generally I think - yes, it should |
Ok, I will add this task soon. |
Done. You can try it.
where "test_logs" - name of collection, in which we want copy data, 1024000 - size of "test_logs" collection in bytes (this value need, if such collection not exist). If you already created new collection and just need copy data, you can use the same command, but without last argument:
|
Sorry, I see only copy_data task, but don't see 'recreate_collection' which is primary need |
@smostovoy, sorry, now I understand my mistake. New task called:
Just change in mongodb_logger config size of capper collection and run this rake task :) |
Thanks, it works nice. Added cap task - #52 |
If collection size is changed in config the only way to apply it now is manual. I see tests already recreate it so just create a rake task and maybe capistrano task would be helpful.
The text was updated successfully, but these errors were encountered: