v3.29.1
Report a Bug Click Here
OR
OR
0%
Sets From/To automatically
 

Query Duration Distribution

Index Type Usage

⚠️ WARNING ⚠️
Primary index scans in production can cause full bucket scans leading to severe performance issues

Query Pattern Features

Statement Type

Query State

Index Scan Consistency

Users by Query Count

Count User

Index Usage Count

Note: #primary count shows total operations, not unique queries
Count Index Name Bucket.Scope.Collection
Click and drag to zoom
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
⋮⋮
Indexes
0
Scanned
*: # of unique indexes per filter
**: # of times index has been scanned
Queries
0
Executed
Total Indexes: 0
Buckets: 0
Scopes: 0
Collections: 0
Primary Indexes: 0
Used/Total Indexes: 0/0
Without/With Replica: 0/0
Index Type:
Never Scanned Indexes: 0
Sync Gateway Indexes: 0

No Index Data Loaded

To analyze indexes, run this query in your Couchbase Query Workbench and paste the results in the second textarea above:

SELECT 
    s.name,
    s.id,
    s.metadata,
    s.state,
    s.num_replica,
    s.`using` AS indexType,
    CONCAT("CREATE INDEX ", s.name, " ON ", k, ks, p, w, ";") AS indexString
FROM system:indexes AS s
LET bid = CONCAT("", s.bucket_id, ""),
    sid = CONCAT("", s.scope_id, ""),
    kid = CONCAT("", s.keyspace_id, ""),
    k = NVL2(bid, CONCAT2(".", bid, sid, kid), kid),
    ks = CASE WHEN s.is_primary THEN "" ELSE "(" || CONCAT2(",", s.index_key) || ")" END,
    w = CASE WHEN s.condition IS NOT NULL THEN " WHERE " || REPLACE(s.condition, '"', "'") ELSE "" END,
    p = CASE WHEN s.`partition` IS NOT NULL THEN " PARTITION BY " || s.`partition` ELSE "" END;

Steps:
1. Copy the query above
2. Run it in Couchbase Query Workbench
3. Copy the JSON results
4. Paste into the second textarea ,on the right, at the top
5. Click "Parse JSON" again

Schema Tree

Select a schema from the tree to view details

Tip: To get a requestId, go to the "Every Query" tab and look at the far-right column. Copy the requestId and paste it here. You can also open with #requestId=... in the URL.

            

🚧 REPORT MAKER IN DEVELOPMENT 🚧

Some insights show LIVE data, BETA insights are work in progress (might have false positives), others display placeholder content.

PRO Use SQL++ filter and/or Elapsed Time filter in Data & Filters above to narrow stats and analysis to specific queries or time ranges before generating your report.
Example
Report Maker filters and exclude system example