Webcast on SQL Optimization for Ms Dynamics NAV
Answers
-
Yes! Everybody, next sunday will be MiBuSo Plopsa day!
See you in Belgium \:D/
(PS: This is not a SQL Workshop location)0 -
Hynek Muhlbacher wrote:N.B. I think that I have done two posts so far breaking all rules not to advertise business here... Sorry, perhaps somebody ban me from here please?No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Ok ran it with closing date.
setrange(Date,010107D,CLOSINGDATE(123107D));SELECT SUM("s2") FROM "NavisionSP2$50000$0" WITH (READUNCOMMITTED) WHERE (bucket=? AND ((f3>=? AND f3<?)))
setrange(Date,010107D,123107D);SELECT SUM("sum1") FROM (SELECT SUM("s2") AS "sum1" FROM "NavisionSP2$50000$0" WITH (READUNCOMMITTED) WHERE (bucket=? AND ((f3>=? AND f3<?))) UNION ALL SELECT SUM("s2") AS "sum1" FROM "NavisionSP2"."dbo"."NavisionSP2$50000$0" WITH (READUNCOMMITTED
It looks like you should set closing date in your filter for dates?
Will this have perfomrance Improvement? Looks like the second statement does a Union whereas the first doesn't.my 2 cents0 -
What is this 50000 table you have created? In your first example you used the item ledgers.0
-
Yes I created a 50000 table to play and learn. With Line No. as PK and Date and amount field.
Something else I just saw that was mentioned in webcast was example of table that can gain performance. "Warehouse Activity Line" was one of them.
Anyways. Another tip I want to add is that. Since 5.0 has sql performance changes already added to the object, if you want to improve performance, Just compare the 5.0 table keys to 4.0. They've added different SQL Index to the keys and have disabled MAINSQL Index on several keys.
Make sure that you don't change Navision keys, just the sqlindex.
This can be very helpfull.my 2 cents0 -
-
I would have assumed somebody from Navision, but based on your question, it looks like the person is not from Navision.
So my final answer as they would say in jeopardy. Who is Hynek?my 2 cents0 -
To completely finalise this advertisement.
Hynek is manager of SQL Perform Ltd, a company specialised in SQL tuning for NAV.
The answer to your question is yes, even MS is hiring him for his knowledge.
Please look at www.sqlperform.com0 -
two more question. In his demo he did something to sql profiler that made it stop going to the last line. what was that?
Also how much performance degradation is there when running sql profiler on a database? Is it noticeable. If lets say there are 20 people loged in?my 2 cents0 -
ok I've now started query analyzer and looked at the following sql statement
SELECT *,DATALENGTH("Picture") FROM "NAVPROD"."dbo"."Jason Pharm$Contact" WHERE (("Name" LIKE 'test')) AND "No_">'C100020' ORDER BY "No_" OPTION (FAST 10)
There are two keys on Contact table
"No."
"Name","No." <---- new key added by me.
Based on execution plan both keys have 50% percent chance for the above.
I added the key because users constantly running this query on production.
In SQL the query analyizer shows the following codeSELECT *,DATALENGTH("Picture") FROM "NAVPROD"."dbo"."Jason Pharm$Contact" WHERE (("Name" LIKE @P1)) ORDER BY "No_" OPTION (FAST 10)
I can't tell what P1 is and P2. Is there a way I can find out?
If I change the value of P1 and P2 I get different percange 68% - 32%.
The Primary clustered key wins most of the time.
In query analyzer this shows a duration of 700 ms.
There are 150K Contacts records in the table.
is 700 ms too high? Will the new key bring any benefits if I add it to production?
Users are constantly searching for contacts on contact card.my 2 cents0 -
NavStudent wrote:two more question. In his demo he did something to sql profiler that made it stop going to the last line. what was that?
Click on window, uncheck autscroll.0 -
[Topic moved from Navision forum to SQL Performance forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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