~/talk

Demystifying Database Performance Issues with sqlcommenter

Talkat OpenJS World 2021 · 2021-06-02..06-03· [databases, observability]
links:none on file
slides:none on file

sqlcommenter augments SQL with URL-encoded key=value tags appended after the statement (preserving existing comments, comma‑separated and lexicographically sorted) so slow queries can be traced back to callsite info. Demo uses Node.js + Sequelize, Postgres on Cloud SQL (Cloud SQL Proxy), and the npm package google-cloud-sqlcommenter-connect; a simple voting app with a new getAllVotes route returns eight rows and logs show the added tags. Cloud SQL Insights surfaces those tags so route-by-load and query-plan samples pinpoint where latency originates.

AI-written summary · about

  1. 0:00Start
  2. 1:11Sql Commenter
  3. 3:30Query Log
  4. 4:51Create a New Cloud Sql Instance
  5. 6:14Create a Database
  6. 7:24Create a Service Account
  7. 11:43Clone and Test
  8. 21:13Cloud Sql Insights
  9. 23:53Query Plans
  10. 24:52Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.