Feature 17 / 17
Preserve what you learn
Preserve what you learn. Save the working query and why the tables connect, in the project, so the next person does not rediscover the same join from a chat.
Shared knowledge loopExploring
The problem
Once someone understands the data, does the next person still have to rediscover it?
A good investigation uncovers more than one answer: it reveals which fields matter, which joins are safe, and which assumptions are false. If that knowledge stays in a notebook or chat thread, the next person starts from zero.
A clearer workflow
Save the working query
Give the query a name that describes the business question, not only its SQL or TugQL syntax.
Explain the relationship
Record why the tables connect and what a result does or does not mean.
Review and reuse
Keep project definitions and reusable queries in a repository so changes can be inspected alongside the work they support.
Example investigation plan
Leave a reusable customer purchase investigation
Starting question
What should a teammate know before reusing the customer invoice query?
Steps to follow
- Browse the public project’s shared queries, open the demodb folder, and select Chinook Customer Invoices.
- Enter Customer ID 1, choose Preview SQL, then Run and inspect the invoice rows. Check the declared relationship so you can explain why Customer.CustomerId joins to Invoice.CustomerId.
- Prepare a project note describing the customer filter, the source environment, and the Invoice.InvoiceId → InvoiceLine.InvoiceId follow-up.
Evidence to assemble
Evidence to assemble: a reusable query and an explanation of its assumptions and next steps. Shared query browsing is available today; this is not a demonstration of the shared knowledge loop.
Browse the shared query libraryWhat changes
A one-off discovery becomes a starting point for teammates, future incidents, and new questions.
The case of order 11045 · Act 9 · Reuse
In the demo story
A week later order 11062 is stuck the same way. Sarah finds the saved investigation for 11045 and handles it herself.
The guided demo of this story is being built.
