Odp: Reasons to use managers

2011-06-04 Thread Tomasz Zieliński
If you use manager method, you can keep your schema unchanged/normalized and employ e.g. Memcached or Redis to store the result of your computation. This might or might not fits your use case, of course. -- Tomasz Zielinski pyconsultant.eu -- You received this message because you are subscribed

Re: Reasons to use managers

2011-06-03 Thread Marc Aymerich
On Fri, Jun 3, 2011 at 11:29 AM, Marc Aymerich wrote: > On Fri, Jun 3, 2011 at 8:30 AM, Amit Sethi wrote: >>> functionality to your models. (For "row-level" functionality -- i.e., >>> functions that act on a single instance of a model object -- use Model >>> methods, not custom Manager methods.)

Re: Reasons to use managers

2011-06-03 Thread Marc Aymerich
On Fri, Jun 3, 2011 at 8:30 AM, Amit Sethi wrote: >> functionality to your models. (For "row-level" functionality -- i.e., >> functions that act on a single instance of a model object -- use Model >> methods, not custom Manager methods.) >> > > But what is the benefit of model methods compared to

Re: Reasons to use managers

2011-06-03 Thread Mike
My take is that you can have record-centric logic that can either be put in one place (tucked away in the appropriate model) ... or spread out across the codebase. Sounds analogous to standard OOP concepts. -- You received this message because you are subscribed to the Google Groups "Django use

Re: Reasons to use managers

2011-06-02 Thread Amit Sethi
> functionality to your models. (For "row-level" functionality -- i.e., > functions that act on a single instance of a model object -- use Model > methods, not custom Manager methods.) > But what is the benefit of model methods compared to adding an extra field and getting almost the same thing do

Aw: Reasons to use managers

2011-06-02 Thread Martin Brochhaus
>From the documentation: Adding extra Manager methods is the preferred way to add "table-level" functionality to your models. (For "row-level" functionality -- i.e., functions that act on a single instance of a model object -- use *Model methods*

Reasons to use managers

2011-06-02 Thread Amit Sethi
Hi all , I have a situation in which i am contemplating using an extra field although the same thing can be done using a manager(although the function may take some time). In this situation normalization isn't actually a priority. Are there some other reasons to use a manager. Also what would be th