Posted on November 7, 2008 at 5:35 am
Merging Django querysets – redux
On my previous post with the same title, frits commented asking wouldn’t it be possible to use filter(tags__in=l) instead of chaining filters. I’d initially thought that chaining filters would generate a more efficient SQL query. This morning, I decided to test it. Generates the following SQL query. Notice that it generates a total of 4 [...]