Fast content import in Plone

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Fast content import in Plone - Presentation Transcript

    1. fast content import in Plone how to import 120k documents in 8.43 minutes? http://www.flickr.com/photos/luciano_meirelles/3461046001/sizes/o/
    2. The problem ✓ we have 36.000 documents to migrate (which gives 120.000 with all their children) ✓ we don’t want to wait few hours to do that ✓ users shouldn’t be aware of the migration process
    3. The Idea ✓ Why not just create brains and let users decide which document fully migrate?
    4. http://www.flickr.com/photos/oscarmota/1155257083 It’s quite simple
    5. First: Metadata ✓ dummy_object is a simple python object with minimal metadata >>> pp dummy_object.__dict__ {'title': u'dummy title', 'id': u'simple_id', 'review_state': 'private', 'path': '/plone/importfolder/ToBeMigrated_simple_id'}
    6. Second: import script ✓ import script which creates brains in portal_catalog from our dummy object pc = getToolByName(self.context, 'portal_catalog') pc.catalog_object(dummy_object, dummy_object.path)
    7. Third: Traverser ✓ Now we need to allow users to see them. ✓ So we created traverser in our import folder def __bobo_traverse__(self, REQUEST, name): if name.startswith('ToBeMigrated'): view = getMultiAdapter( (self, self.REQUEST), name='to_be_migrated') view.setBrainId(name) return view
    8. At the End ✓ The view informs end- user that this document need to be migrated ✓ When user decides to import it - we will start the import process for selected brain.uid
    9. At the End ✓ The rest is pure Plone folder_contents will lists 'to_be_migrated' brains in import folder for you ✓ Simple and much faster
    10. Thanks! Andrew Mleczko Plone archaeologist andrzej.mleczko@redturtle.net http://blog.redturtle.it

    + Andrew MleczkoAndrew Mleczko, 1 month ago

    custom

    171 views, 1 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 171
      • 171 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 3
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories