Entries tagged: patterns

Feb 22

Django patterns, part 4: forwards generic relations

Simulating select_related() on a GenericForeignKey

Feb 15

Django patterns part 3: efficient generic relations

Extending the dictionary technique to cover generic lookups

Jan 11

Django patterns, part 2: efficient reverse lookups

Avoiding extra database calls on backwards ForeignKey queries

Dec 20

Django patterns: memoizing

How to cache expensive operations to prevent repeated database calls