Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: #371
a bunch of ways to get query plans to help with debugging Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: #348