Revision 54592
Added by Sandro La Bruzzo over 5 years ago
modules/s3-objectStore-migration/trunk/s3_migration.py | ||
---|---|---|
53 | 53 |
for item in metadataCollection.find(no_cursor_timeout=True): |
54 | 54 |
obsId = item['obsId'] |
55 | 55 |
exportItemForMongoCollection(obsId, db, bucket, log_file) |
56 |
destination_collection =db[ 's3_'+obsId[:36]] |
|
56 | 57 |
print "creating Index on ID" |
57 | 58 |
destination_collection.create_index([('id',pymongo.ASCENDING)]) |
58 | 59 |
|
Also available in: Unified diff
fixed check on mongo