Open alexeybahterwork opened 4 weeks ago
Hi! It could not be a query performance but your database bottleneck. Cube.js adds a very little overhead during the query, most performance issues are somewhere in between. For example, some users experience data models recompiling on every request, others have issues with refreshing queries, so you need to find where yours is.
@alexeybahterwork I would recommend to run the query from statement
's sql
directly in your database and see how well it performs. Chances are that it's not performing very well on its own. Also, running EXPLAIN
and EXPLAIN ANALYZE
might provide more insights.
Which database do you use? How large are the datasets? When you say "takes a very long time", how long is that, exactly?
My general recommendations would be to...
balance_in
), and
Problem
Hello. Please tell me, I use an sql expression in a cube and the query to this cube takes a very long time. What could be the reason? How can I optimize the query to the database in cube.js?
I tried changing the limit to a lower value, but it didn't help.
Perhaps the sql query is too complex, so cube processes it slowly
Related Cube.js schema
Related Cube.js generated SQL