What is Live Eye?
Live Eye is the live stream of statements that reach a PostgreSQL or MySQL instance managed by SQLEye. It is off by default and turned on per instance with the Capture toggle.
What does Live Eye show?
Section titled “What does Live Eye show?”Open an instance and use its tabs: Live, Shapes, Connections and Info.
| Tab | Shows |
|---|---|
| Live | Every captured statement as it arrives: Time, Duration, SQL, Rows, Conn. |
| Shapes | Statements grouped by query shape with count, total, average and maximum time. |
| Connections | Current connections to the server. |
| Info | Connection string, CLI command, .env blocks, data and log locations. |
On top of the stream, SQLEye flags slow queries and detects N+1 patterns. From a captured statement you can run Explain.
What does each event contain?
Section titled “What does each event contain?”Time, SQL text, query shape and its hash, duration, rows, rows examined and “No index used” (MySQL only), connection id, database, user, application, error text if the statement failed, a slow flag and an N+1 group.
What are the limits?
Section titled “What are the limits?”- SQL text is truncated at 8 KB per event.
- The buffer keeps 50,000 events per instance by default (1,000 to 500,000 in Settings). Captured queries live in memory only and are not kept across restarts.
- The interface receives new events in batches at most every 100 ms.
Does it cost anything?
Section titled “Does it cost anything?”Only while capture is on. With capture off nothing runs for Live Eye, and the server uses its normal configuration. See Capture for what capture changes on each engine.
Next steps
Section titled “Next steps”SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.