Count | User |
---|
Count | Index Name | Bucket.Scope.Collection |
---|
Some insights show LIVE data, BETA insights are work in progress (might have false positives), others display placeholder content.
0 queries (0%) scan an average of 0 index entries but returned back an avg 0 records per query or a selectivity of 0% (excluding aggregate functions like COUNT(), AVG(), MIN(), MAX(), and mutation statements (MERGE, DELETE, INSERT, UPDATE, UPSERT).
0 total indexes:
Primary indexes on avg are scanning 0 items with an avg scan time of 0ms. These could benefit from secondary indexes.
0 queries (0%) with `ORDER BY` + `LIMIT ` + `OFFSET ` scanned an Avg of 0 items from the index(es).
0 queries (0%) whose average percentage of sum of their core execTime / kernTime is 0%.
0 queries (0%) are using avg 0GB of memory each, indicating potential memory optimization opportunities.
0 queries (0%) have parse or plan times greater than 1ms with avg parse: 0ms and avg plan: 0ms, which may indicate high CPU utilization or kernel time wait issues.
0 USE KEY queries (0%) with avg query time of 0ms, suggesting potential KV service bottlenecks.
0 queries (0%) lack WHERE clauses, potentially scanning entire collections unnecessarily. possibly a query with `USE KEYS()`
0 JOIN queries are taking an average of 0 seconds each, with 0% showing suboptimal join patterns.
0 queries (0%) use LIKE
operations with leading wildcards (%text
), preventing index usage and
causing full scans.
0 queries (0%) use SELECT * which returns entire documents and can increase network I/O and memory. Prefer selecting only needed fields.
0 queries (0%) with avg size: 0MB with 0% of the time of the query was streaming data out to the application.
0 queries (0%) return result sets with avg size of 0MB, which can consume significant memory and network resources.
0 queries show evidence of resource contention, with execution times varying by more than 0% during peak hours.
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
Some insights show LIVE data, BETA insights are work in progress (might have false positives), others display placeholder content.