Skip to main content

Interpret filter performance statistics

Filter performance

Use execution statistics in the NIM log to understand a filter's total time, its individual processing stages, and the number of affected records.

Each filter execution writes a statistics entry to the log. All duration values are measured in milliseconds (ms). Start with total, then compare the individual stages to find where the filter spends most of its time.

Read a statistics entryDirect link to Read a statistics entry

Filter stats fManagerEmployees (ms): total:5, query:4, resolve:0,
docs:1, sort:0, ordering:0, exclude:0, lookup:0, append:0 #21/0/1
FieldMeaning
totalTotal time to execute the filter.
queryTime to initialize parameters and variables and calculate the raw query result.
resolveTime to resolve result-document references from the raw result and dataset.
docsTime to compose the resulting documents.
sortTime to sort the returned documents.
orderingTime to determine included and excluded documents.
excludeTime to remove rows using an exclusion-column setting.
lookupTime to process configured lookups.
appendTime to append results from other filters.

The trailing #included/removed-by-lookup/excluded counts show how many documents NIM kept, removed through lookups, and excluded. In #21/0/1, NIM kept 21 documents, removed none through a lookup, and excluded one.

Investigate a slow filterDirect link to Investigate a slow filter

  1. Compare total across multiple executions to determine whether the delay is consistent.
  2. Identify the largest individual stage.
  3. Review the related configuration:
If this stage is high…Review…
query or resolveRelations, data volume, source collection, and the filter's starting table.
sort or orderingSort criteria, duplicate handling, and returned row count.
lookupLookup count, target data volume, and whether a relation can better suit the requirement.
appendThe appended filters and their result sizes.
  1. Change one factor at a time, rerun the filter, and compare the new log entry.
tip

Filter statistics help identify a likely bottleneck; they do not by themselves prove the root cause. Use the result preview and collection history alongside the log entry.