· 1 min · Django

“Django Development with PostgreSQL” at PostgreSQL Conference East

Join a full-day deep dive into Django and PostgreSQL at PostgreSQL Conference East in New York, March 22–25.

0 comments

· 1 min · PostgreSQL

PostgreSQL for Servoy Developers

PostgreSQL for Servoy Developers: slides from ServoyWorld 2011 now available online.

1 comment

· 3 min · Tech Biz

Nobody Here But Us Chickens: Google and Lies We Tell Ourselves

Architectural decisions aren't always what they seem. Learn why calling a tradeoff a feature is a lie you tell yourself—and why honesty matters more.

1 comment

· 2 min · Django

Extra columns when doing .distinct() in a Django QuerySet

Model ordering can silently break `.distinct()` queries by including hidden fields in the SELECT clause.

3 comments

· 2 min · Django

Getting the ID of Related Objects in Django

Stop fetching entire rows to grab a foreign key you already have, and let the database handle iteration instead of your app.

6 comments

· 1 min · Security

Why I run qmail

A critical root exploit in Exim is spreading—but the developers patched it months ago. Keep your mail server updated.

0 comments

· 3 min · Django

Comparing NULLs Considered Silly

NULL doesn't behave like you think it does. Nullable primary keys are meaningless, NULL values can't be joined, and NULL = NULL returns NULL—not true.

3 comments

· 1 min · Django

Using Server-Side PostgreSQL Cursors in Django

Use psycopg2's server-side cursors in Django to stream enormous result sets without loading them into memory.

2 comments

· 8 min · Django

Very Large Result Sets in Django using PostgreSQL

Django's QuerySet caching and default fetch behavior can silently consume gigabytes of memory on large result sets.

9 comments

· 1 min · PostgreSQL

Waiting for psycopg2.3: NamedTuples

Stop writing result[4]—psycopg2.3 beta now lets you fetch query results as named tuples with intuitive dot notation.

2 comments