The problem was found to be a circular eager relationship, defined in that specific application, which required loading of many objects recursively with the query results.
The solution was to change the relationship setting from eager to lazy.
More details can be found in this forum thread.