How to split a row into different collections with each store the _id of the first collection as reference?

The driver is actually responsible for generating the ObjectId value, so it's fairly straightforward (below I assume your database is stored in the python variable 'db').

The driver is actually responsible for generating the ObjectId value, so it's fairly straightforward (below I assume your database is stored in the python variable 'db'): import bson myrow = { att1 : "att1", att2 : "att2", att3 : "att3", att4 : "att4"} ref_id = bson.ObjectId() db.collectionA. Insert({att1:myrow'att1', att2:myrow'att2', _id:ref_id}) db.collectionB. Insert({att3:myrow'att3', att4:myrow'att4', ref_id:ref_id}).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions