Well, put_multi 'm not sure about, maybe the difference in this case is insignificant (didn't research it.) But get_by_key_name() is less expensive than a fetch for a single record.
On Wednesday, January 8, 2014 3:53:05 PM UTC+1, Alan Etkin wrote: > > > (For instance when I want to supply a "key_name" when I put() an entity > so I can have better performance to get() that entity from db. > > Or when I want to use put_multi()) > > put_multi is supported by DAL trough the bulk_insert method. How better is > performance when using named keys? Do you have benchmarks?. Also, is the > use of named keys supported by DAL? I think it is not: > > https://groups.google.com/d/msg/web2py/lFKiIGary0c/_sx0EoJkYk0J > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.