webksde / ddev-vscode-devcontainer-drupal-template

Drupal DDEV based development container with attached Visual Studio Code
22 stars 3 forks source link

Add a database log tail command? (tail-db aka watch-sql) #159

Open JPustkuchen opened 6 months ago

JPustkuchen commented 6 months ago

Just read through https://dri.es/effortless-inspecting-of-drupal-database-queries?utm_source=The+Weekly+Drop&utm_medium=email&utm_campaign=The_Weekly_Drop_Issue_615_01_11_2024

Which lead to the idea that we could provide a ddev tail-db command that allows logging database requests in realtime (even without logging them persistently)?

Background: https://de.wikipedia.org/wiki/Tail_(Unix)

Might be helpful to inspect database queries, e.g. for debugging or performance optimization.

But it's and egde-case so let's just safe the idea here! ;)