Closed apfejes closed 10 years ago
Note that sampleids should all be converted to objectid(sampleid), as this takes up half the space (objectid uses a bitearray) and shrinks the corresponding indices as well.
must run the following command on the db:
db.methylation.find().forEach(function(doc) { db.methylation.update({_id:doc._id},{$set:{sampleid:new ObjectId(doc.sampleid)}}); });
Database was updated and compacted, but mongodb does not release extra space, so it is difficult to explicitly tell what the net effect was. However, it's likely worth trying to load another data set to see how it progresses.
Shrink down the names of the fields in the methylation table.
eg b-value -> b probeid -> pid sampleid ->sid