SQL Performance Query Object

byronic
Member Posts: 22
Hello everyone!
We have a performance issue with a query object in NAV BC14.
We isolated the code snippet with the Performance Profiler that caused this issue and we stumbled upon a SQL statement (caused by an Query.READ) which needs 7-10 seconds to run through.
The SQL statement looks like this:

The code that calls the SQL statement is the marked line (StundentabelleAbwesenheiten is the query variable):

The query object that caused the problem looks like this:

We tried to create a new key in the table "DL Lohnzeile", but that had no effect on the duration time of the SQL statement:

What else could be the problem here?
Thank you very much in advance!
We have a performance issue with a query object in NAV BC14.
We isolated the code snippet with the Performance Profiler that caused this issue and we stumbled upon a SQL statement (caused by an Query.READ) which needs 7-10 seconds to run through.
The SQL statement looks like this:

The code that calls the SQL statement is the marked line (StundentabelleAbwesenheiten is the query variable):

The query object that caused the problem looks like this:

We tried to create a new key in the table "DL Lohnzeile", but that had no effect on the duration time of the SQL statement:

What else could be the problem here?
Thank you very much in advance!
0
Answers
-
Give us a screenshot of the properties for DL Leistungsart, we need to know how it's linked to the parent table.0
-
Looks like your DataItemLink property is undefined for DL_Leistungsart.0
-
The properties of the DataItem"DL Leistungsart" look like this in the query:0
-
Well, your links look ok, so I suspect the performance issue is with missing indexes. Without knowing your data, this is just a shot in the dark, but here's where I'll be looking.
Is the DL Leistungsart.Code a primary index? If yes, you're ok, if not, check to see if there's an index setup for it.
Similarly, is there an index setup for the "Leistungsart Code".
If there's not an index for the Mitarbeiternr field, then I would add one since it looks like something that may help, given the fixed value.0 -
We had many such performance issues in one of the client I used to work and SQL Mantra Tools guys helped them to resolved all the problems. Please visit www.sqlmantratools.com and ask for their help.-1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions