Metadata-Version: 1.1
Name: mpcouch
Version: 0.2.3
Summary: A multiprocess bulk-uploading helper for CouchDB
Home-page: https://github.com/scubbx/couch-bulk-multiprocess
Author: Markus Mayr
Author-email: markusmayr@gmx.net
License: MIT
Description: Multiprocess Bulk Uploading to CouchDB
        ########################################
        
        Status
        ======
        
        This is not yet finished, but can already be used.
        
        Usage
        =====
        
        Create a new mpcouchPusher object
        
        `myCouchPusher = mpcouch.mpcouchPusher( "http://localhost:5984/myDatabase", 30000 )`
        
        Use this object every time you have one single document ready to be stored in the database:
        
        `myCouchPusher.pushData(myNewDocument)`
        
        The module will collect all documents until the threshold is reached (in our example this would be the 30000 specified above) and upload them as a batch to the CouchDB also specified at creation time of the object (myCouchDbDatabase).
        
        Since every bulk-upload is performed by a single process, the original program continues while the upload happens in the background.
        
        To wait for all running uploads to finish and to make sure the very last batch of documents gets pushed to the server, run
        
        `myCouchPusher.finish()`
        
        after your final document was sent to pushData.
        The module now waits for all the uploads to finish and uploads the final bulk of collected documents.
        
Keywords: couchdb multiprocessing upload bulk
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.2
Classifier: Topic :: Database
