There is an optimization you can do in X++ when the Trial balance is focused on a purely Main account dimension set. It appears from your query that might be the case here. The query is different when you click Posted from the Main account form and from the Trial balance form, and that gave me the idea to optimize in the simple case.
↧