You are here: Foswiki>Tasks Web>Item10975 (05 Sep 2011, PaulHarvey)Edit Attach

Item10975: Consider making versions import a separate rest handler

Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: MongoDBPlugin
Reported By: PaulHarvey
Waiting For: PaulHarvey
Last Change By: PaulHarvey
For testing purposes anyway. It takes hours to import our data on my notebook.

In the event a catastrophic mongo meltdown, it would be cool to rebuild the data for current versions only to get the site back up as quick as possible. Then do the versions import once it's running again

-- PaulHarvey - 16 Jul 2011

ok, I'm adding a revision=off param - basically, it means you can import without history, and then later run a full import at a later date (i hope that works)

also calling $meta->finish() as letting the obj run out of scope leaks memory without leaking

over to your testing wink

-- SvenDowideit - 20 Jul 2011

Works, but I need to do some more testing wrt indexes not being made (probably has nothing to do with importing without versions, just need to do some more tests)

-- PaulHarvey - 22 Jul 2011

I'm not terribly happy with the naming (can't it be revisions rather than revision? smile but this does work. Need to pretty up the docs a bit, but I'll get to that in another task. Closing.

-- PaulHarvey - 05 Sep 2011

ItemTemplate edit

Summary Consider making versions import a separate rest handler
ReportedBy PaulHarvey
Codebase trunk
SVN Range
AppliesTo Extension
Component MongoDBPlugin
Priority Enhancement
CurrentState Closed
WaitingFor PaulHarvey
Checkins MongoDBPlugin:0a7a51dd1b46
TargetRelease n/a
ReleasedIn n/a
Topic revision: r6 - 05 Sep 2011, PaulHarvey
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy