Development

Changeset 1485

You must first sign up to be able to contribute.

Changeset 1485

Show
Ignore:
Timestamp:
06/21/06 09:37:34 (3 years ago)
Author:
francois
Message:

documented peer_method parameter in admin list configuration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/doc/book/content/generator.txt

    r1393 r1485  
    390390          params:         %%=content%% (sent by %%author%% on %%date%% about %%article_link%%) 
    391391 
     392### Join 
     393 
     394The default method used by the admin generator to get the list is a `doSelect()`. But, if you use related objects in the list, the number database queries executed will rapidly increase. For instance, if you want to display the name of the author in a list of posts, an additional query will be made to the database for each line in the list to retrieve the related `Author` object.  
     395 
     396You may want to force the pager to use a `doSelectJoinXXX()` method to optimize the number of queries. This can be specified with the `peer_method` parameter: 
     397 
     398        list: 
     399          peer_method:   doSelectJoinAuthor 
     400 
    392401`edit` view specific customization 
    393402---------------------------------- 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.