And here is the Postgresql log file for the same "polls" screens. Same select as in debug_toolbar
It seems, such thing like a connection pool does not exists by default (every time connection is initialized) Is it just a setting in Django or in the psycopg2 ? ************************************************************************************** LOG: statement: SET DATESTYLE TO 'ISO' LOG: statement: SHOW client_encoding LOG: statement: SHOW default_transaction_isolation LOG: statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED LOG: statement: SET TIME ZONE E'Europe/Berlin' LOG: statement: SELECT version() LOG: statement: SELECT "polls_poll"."id", "polls_poll"."question", "polls_poll"."pub_date" FROM "polls_poll" LOG: statement: ROLLBACK LOG: statement: SET DATESTYLE TO 'ISO' LOG: statement: SHOW client_encoding LOG: statement: SHOW default_transaction_isolation LOG: statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED LOG: statement: SET TIME ZONE E'Europe/Berlin' LOG: statement: SELECT "polls_poll"."id", "polls_poll"."question", "polls_poll"."pub_date" FROM "polls_poll" WHERE "polls_poll"."id" = 2 LOG: statement: SELECT "polls_choice"."id", "polls_choice"."poll_id", "polls_choice"."choice", "polls_choice"."votes" FROM "polls_choice" WHERE "polls_choice"."poll_id" = 2 LOG: statement: ROLLBACK LOG: statement: SET DATESTYLE TO 'ISO' LOG: statement: SHOW client_encoding LOG: statement: SHOW default_transaction_isolation LOG: statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED LOG: statement: SET TIME ZONE E'Europe/Berlin' LOG: statement: SELECT "polls_poll"."id", "polls_poll"."question", "polls_poll"."pub_date" FROM "polls_poll" WHERE "polls_poll"."id" = 2 LOG: statement: SELECT "polls_choice"."id", "polls_choice"."poll_id", "polls_choice"."choice", "polls_choice"."votes" FROM "polls_choice" WHERE ("polls_choice"."poll_id" = 2 AND "polls_choice"."id" = 10 ) LOG: statement: SELECT (1) AS "a" FROM "polls_choice" WHERE "polls_choice"."id" = 10 LOG: statement: UPDATE "polls_choice" SET "poll_id" = 2, "choice" = E'choice2', "votes" = 31 WHERE "polls_choice"."id" = 10 LOG: statement: COMMIT LOG: statement: SET DATESTYLE TO 'ISO' LOG: statement: SHOW client_encoding LOG: statement: SHOW default_transaction_isolation LOG: statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED LOG: statement: SET TIME ZONE E'Europe/Berlin' LOG: statement: SELECT "polls_poll"."id", "polls_poll"."question", "polls_poll"."pub_date" FROM "polls_poll" WHERE "polls_poll"."id" = 2 LOG: statement: SELECT "polls_choice"."id", "polls_choice"."poll_id", "polls_choice"."choice", "polls_choice"."votes" FROM "polls_choice" WHERE "polls_choice"."poll_id" = 2 LOG: statement: ROLLBACK ************************************************************************************** -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.