apps/docs/content/docs.v6/postgres/query-optimization/recordings.mdx
The recordings feature helps developers debug and isolate sets of queries into distinct sessions, known as recordings. This targeted approach enables precise performance analysis and optimization by preventing the mixing of queries from different applications or test rounds, leading to clearer insights and more effective debugging.
You can manually start and stop recording sessions via the Optimize dashboard by clicking the Start Recording and Stop Recording buttons.
:::warning A recording will automatically stop if the 10k query limit is reached or if the Prisma schema of the app is changed. :::
You can rename and tag your recording sessions for easy identification and context. Click on the default name of the session and type the desired name.
Each recording session captures detailed insights about the queries executed in your app, including:
Each recording can include up to 10k queries. There are no limits on storage retention.
When a recording session ends, Optimize generates recommendations such as:
@db.Money@db.Char(n)@db.VarChar(n)timestamp(0) or timestamptz(0)CURRENT_TIME:::info Use Prisma AI to ask follow-up questions about a recommendation. :::
Learn more about the recommendations generated by Optimize here.