RPC Function not using index #3715
Replies: 1 comment 17 replies
-
You are not demonstrating that. The RPC you have is not marked as STABLE and is a This means that inside this "Function Scan" node the function is executed - and the query inside the function is planned and executed separately. You have no information whatsoever in your explain about how that inner query looks like. Since this is a simple function, which can be expressed as Alternatively, just run the query inside the function yourself directly and replace the arguments with values. Then check whether the index is used or not. |
Beta Was this translation helpful? Give feedback.
-
Hey Guys,
Environment
Below are details of schema, function & underlying index.
TABLE:
FUNCTION:
INDEX:
When i pd RPC call, getting below query plan for the same
/rpc/fn_req_resp_filters_btree_index?p_order_id=661748370&offset=0&limit=100
Problem
Not able to get any indication of index usage for this query, Any ideas/suggestions?
Beta Was this translation helpful? Give feedback.
All reactions