FT.PROFILE
FT.PROFILE index SEARCH | AGGREGATE [LIMITED] QUERY query
Apply FT.SEARCH or FT.AGGREGATE command to collect performance details
indexis index name, created using FT.CREATE.
SEARCH | AGGREGATEis difference between FT.SEARCH and FT.AGGREGATE.
LIMITEDremoves details of reader iterator.
QUERY {query}is query string, sent to FT.SEARCH.
NOCONTENT or LIMIT 0 0 to reduce the reply results or LIMITED to not reply with details of reader iterators inside built-in unions such as fuzzy or prefix.
FT.PROFILE returns an array reply, with the first array reply identical to the reply of FT.SEARCH and FT.AGGREGATE and a second array reply with information of time in milliseconds (ms) used to create the query and time and count of calls of iterators and result-processors.
Return value has an array with two elements:
127.0.0.1:6379> FT.PROFILE idx SEARCH QUERY "hello world"
1) 1) (integer) 1
2) "doc1"
3) 1) "t"
2) "hello world"
2) 1) 1) Total profile time
2) "0.47199999999999998"
2) 1) Parsing time
2) "0.218"
3) 1) Pipeline creation time
2) "0.032000000000000001"
4) 1) Iterators profile
2) 1) Type
2) INTERSECT
3) Time
4) "0.025000000000000001"
5) Counter
6) (integer) 1
7) Child iterators
8) 1) Type
2) TEXT
3) Term
4) hello
5) Time
6) "0.0070000000000000001"
7) Counter
8) (integer) 1
9) Size
10) (integer) 1
9) 1) Type
2) TEXT
3) Term
4) world
5) Time
6) "0.0030000000000000001"
7) Counter
8) (integer) 1
9) Size
10) (integer) 1
5) 1) Result processors profile
2) 1) Type
2) Index
3) Time
4) "0.036999999999999998"
5) Counter
6) (integer) 1
3) 1) Type
2) Scorer
3) Time
4) "0.025000000000000001"
5) Counter
6) (integer) 1
4) 1) Type
2) Sorter
3) Time
4) "0.013999999999999999"
5) Counter
6) (integer) 1
5) 1) Type
2) Loader
3) Time
4) "0.10299999999999999"
5) Counter
6) (integer) 1
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/ft.profile/