Hey everyone :wave: I have an aggregation query wi...
# troubleshooting
f
Hey everyone 👋 I have an aggregation query with an inverted index on one of the table columns. It takes a few milliseconds to run when it's executed from Pinot's query console. When run through Trino, it takes a few seconds. How'd I get the same performance when querying through Trino?
Searching the internet tells me that using the index has to be built into the Trino connector querying the database.
k
Trino has some overhead in planning the query.. can you share the query
f
Hey @Kishore G, I'm running a simple group by on the date column which has an inverted index on it.
Copy code
select "date", SUM(amount) 
from pinot.default.orders
GROUP BY 1
ORDER BY 1 ASC
LIMIT 1;
k
Apply StarTree index
f
@Kishore G I believe it's only available for offline tables, yes?
k
no, you can use it for real-time as well
f
Okay, thank you.