Comment 1 for bug 697513

Revision history for this message
James Henstridge (jamesh) wrote :

Attached is a test program. In the first transaction, retrieving the object and accessing an attribute results in one query:

    SELECT foo.id, foo.name FROM foo WHERE foo.id = 1 LIMIT 1

The second transaction, which performs identical actions issues two queries:

    SELECT 1 FROM foo WHERE foo.id = 1
    SELECT foo.name FROM foo WHERE foo.id = 1