All work

Select view

Select search mode

 
50 of 920

[QAN] Improve query performance when looking up filters

Description

QAN filters (the left part in QAN UI) are known to suffer from notoriously long query times. This is because the underlying SQL SELECT query is not leveraging “DISTINCT” operator, which results in it returning tens, if not hundreds, of thousands of rows containing the same values.

Therefore, adding “DISTINCT” to the SELECT query drastically improves the time it takes QAN to process query results, which becomes noticeable even with a naked eye

To compare the number of rows returned before and after the fix, I ran the query on a local machine with 2.44 mln rows in QAN database. The difference is almost 40K rows!

 

Before:

After:

How to test

None

How to document

Mention this improvement in the next Release Notes.

Smart Checklist

hide

Details

Assignee

Reporter

Priority

Components

Labels

Needs QA

Needs Doc

Planned Version/s

Fix versions

Story Points

Smart Checklist Progress

Start date

Smart Checklist

Created April 16, 2025 at 4:16 PM
Updated 2 days ago

Activity

Show: