We have a client who has a 154gig database and 1 AOS in a three tier environment.
For some reason, when posting payment journals it can take up to 6 minutes, even if the journal only has one or two lines.
I have used SQL Profiler and Client side tracing and cannot isolate the cause but can verify the duration.
After a fresh restart of the AOS and SQL Server usually the first posting of the morning works fine, but as the day progresses the posting are consistently 5-6 minutes long. I isolated the query against LedgerJournalTrans (332427), LedgerJournalTrans_Asset (101742), and AssetBook (1097). The query looks very well optimized.
We had a similar problem running the Sales open lines report by Items, where the report was grinding to a halt using the InventSum::findSum method, but we bypassed that problem by creating a new query. Which took a report that was running 20 minutes to an hour, down to 20 seconds.
All other reports, and picklist postings, etc seem to run fine.
The client has an average of 33 concurrent users.
SQL Server 2008 R2 is using max memory at 99% and the AOS is usually consuming about 1gig of ram out of 8.
Any feedback would be appreciated.