# Query shape

> A query shape is a SQL statement with its literal values replaced by placeholders, so repeated queries group together.

Source: https://sqleye.com/docs/glossary/query-shape/ · Last updated: 2026-11-29 · Publisher: CodeROG (https://coderog.com)

A query shape, also called a query fingerprint, is a SQL statement with its literal values replaced by placeholders, so that queries differing only in their values count as the same query. SQLEye uses shapes to group statements, total their timings and detect N+1 patterns.

SQLEye normalises a statement by turning literals into ?, collapsing IN lists to IN (?+), stripping comments and collapsing whitespace. Identifier and keyword case is kept as written. Each shape also gets a 16-digit hexadecimal hash (FNV-1a 64) used for filtering.

```sql
SELECT * FROM users WHERE id = 42
SELECT * FROM users WHERE id = 97
-- both have the shape: SELECT * FROM users WHERE id = ?
```

The Shapes tab lists each shape with its count, total, average and maximum duration and N+1 hits, and a shape can be used as a filter on the Live screen. See [Capture](/docs/live-eye/capture/) and [N+1 detection](/docs/live-eye/n-plus-one/).
