Skip to content

Instantly share code, notes, and snippets.

@NetguruGist
Created October 11, 2016 12:57
Show Gist options
  • Save NetguruGist/c2d1a3a8f887f9b8cdc0adbdec7efa3f to your computer and use it in GitHub Desktop.
Save NetguruGist/c2d1a3a8f887f9b8cdc0adbdec7efa3f to your computer and use it in GitHub Desktop.
performance_post_8.bash
Post Load (0.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 [["id", 1]]
(0.1ms) BEGIN
Comment Load (0.5ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = $1 [["post_id", 16]]
SQL (0.5ms) DELETE FROM "comments" WHERE "comments"."id" = $1 [["id", 1]]
SQL (0.3ms) DELETE FROM "comments" WHERE "comments"."id" = $1 [["id", 2]]
SQL (0.2ms) DELETE FROM "comments" WHERE "comments"."id" = $1 [["id", 3]]
SQL (0.3ms) DELETE FROM "comments" WHERE "comments"."id" = $1 [["id", 4]]
SQL (0.5ms) DELETE FROM "posts" WHERE "posts"."id" = $1 [["id", 16]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment