Problem with running Debtor Statement  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Problem with running Debtor Statement

Postby AcuteSupport » Tue Nov 24, 2015 12:14 pm

Hi,
During the migration testing for our client to 7.0.129 running on SQL 2008 R2 on Window server 2012 R2,
we found that the standard Jiwa Statement has been running very slow, so we ran the stored procedure to time it. The result only got returned after 19 minutes of running.
There must be issue with the SQL not using index properly, Do you have any solution to speed it up?
Attachments
Debtor Statement.png
Screen shot of time taken to execute the stored procedure
AcuteSupport
I'm new here
I'm new here
 
Posts: 3
Joined: Mon Sep 07, 2015 1:15 pm

Re: Problem with running Debtor Statement  Topic is solved

Postby Mike.Sheen » Tue Nov 24, 2015 6:33 pm

Try running update_all_stats stored procedure.

If that doesn't help it's probably, as you say, an index missing. Determining which index is missing can be done by comparing the indexes with the ones in demo data for the following tables:
  • DB_Main
  • DB_Trans
  • DB_TransAlloc

If that still doesn't help, then you'll need to look at the query plan output to see where the time is being spent and we can offer further guidance then.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests