hi Robin, thanks for advices
> > How do you order your items? Currently I am selecting and then sorting > > in Python manually. > > You can order by fields: > db(...).select(orderby=db.test.field) I get an error for orderby=~db.test.field - is it just reverse order that is not supported? I didn't see this mentioned in the manual. > > I changed my belongs statements like this: > > db(db.test.id.belongs(test_ids)).select() - > [db.test[id] for id in > > test_ids] > > Is there a better way? If not, would it be a good idea for the DAL to > > do this mapping automatically? > > You are right this is the fastest way available: > [db.test[id] for id in test_ids] for a standard database (eg postgres) "belongs" would be faster, right? Because I am using this same code for both GAE and a Linux box. > GAE has added batch get/put/delete operations that could be > implemented. insert/update is already supported on GAE, so what would get/put add? Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

