Re: Reload method for models

2008-04-15 Thread Malcolm Tredinnick
On Mon, 2008-04-14 at 23:56 -0700, Simon Litchfield wrote: > Anyone who mixes the ORM with raw data-modifying SQL concurrently may > well be in for a surprise. > > Scenario. Load your model; run your data-modifying SQL; then > explicitly try to reload your model to refresh it's data. Gotcha. The

Re: Reload method for models

2008-04-15 Thread Simon Litchfield
Lazy-loading sorry, not 'caching' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send

Reload method for models

2008-04-14 Thread Simon Litchfield
Anyone who mixes the ORM with raw data-modifying SQL concurrently may well be in for a surprise. Scenario. Load your model; run your data-modifying SQL; then explicitly try to reload your model to refresh it's data. Gotcha. The inbuilt queryset cache will cleverly skip straight over your attempt