On Monday 30 January 2006 16:04, Brant Harris wrote: > That said... Person.objects could be a property that returns the > Manager/Query. In this way you could send a cacheless version of it > every time it is called, and would work for your first bit of code, > as desired.
I attempted something like this first time (I think you mean it would return a version with caching *enabled* each time, right?), but removed it again. I wasn't sure how it would interact with things like _default_manager, and also if you create custom managers based on the the default one, Article.objects. I don't know enough about whether creating the managers performance-wise either - funny things go on with events - maybe Adrian could advise on that. Luke -- "I'm at peace with the world. I'm completely serene. I know why I was put here and why everything exists. I am here so everybody can do what I want. Once everybody accepts it, they'll be serene too." (Calvin and Hobbes) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/