> > I am just playing around with mongodb and web2py > > I noticed that when I just make a web2py dump of my mysql db and then > upload it to mongodb some of the "joins" now just rec id's are right and > some are newly generated. > > Also would it be possible to keep id to be web2py specific and to use _id > for mongodb ? >
The current implementation of the mongodb adapter maps web2py id to mongodb _id transparently, so the apps can use .id attributes yet storing _id in database. > I was wondering if it was a bug. In this case in the setup table the > pointers to the frame work fine, but the pointers in the setupprofile named > lparprofile do not exist anymore in the lparprofile table. > What tool are you using to load the records from mysql to mongodb? The import_from_csv_file method should keep references between tables, but AFAIK, it is not possible to force insert of specific _id numbers if you are restoring records to mongodb -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

