Some SQL queries may end with the error message "Query too long".

How to Solve the error

The length of an SQL query is set using the  query.max. parameter that limits the maximum number of characters a query can take.

Admin users can increase this parameter in the galactica.conf file here.