mibuso.com

Microsoft Business Solutions online community
It is currently Tue May 21, 2013 10:37 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Sun Nov 01, 2009 8:44 pm 
Offline

Joined: Wed Nov 24, 1999 8:01 am
Posts: 547
Location: Aalborg,Denmark
Country: Denmark (dk)
David Singleton wrote:
Not sure how I offended you ?

Well, I was just getting frustrated that nobody was discussing the KB article the post was supposed to address, but you were apparently just as confused as I was after reading it. :-)

You (and others) keep talking as if the SQLIndex and MaintainSQLIndex properties suddenly don’t work. I hope we agree that they both “work”, it is just the consequences of changing the SQL Index that is different due to the Dynamic Cursors. I am still customizing the SQL Index to optimize, so I disagree that we never should do it. We should just use more caution.
David Singleton wrote:
To me its just bizarre, there are cases where Dynamic cursors are best and there are cases where Fast Forward cursors are best, and SQL is smart enough to know when to use which, so lets leave it up to SQL to decide.

Really? Are you saying that specifying a cursor type, is like specifying an Index Hint to overrule SQL’s own logic? I have looked at MSDN and found this article http://msdn.microsoft.com/en-us/library/ms712466(VS.85).aspx This is new to me but seems like a good idea. I just fear it will require further specification before each FINDSET or similar cursor operation.

David Singleton wrote:
As to the KB article, I would not trust it, since it seems to mix up two issues. … But the article is very unclear and pretty much unusable since it mentions the error, but not what they do to solve it.

This is the case with almost all the KB articles about the run-time changes in NAV. Extremely frustrating. :evil:

David Singleton wrote:
But I do not see any indication what so ever that MS are moving back to letting SQL decide its own execution plans. I think we need to contact every one we can, and get the word out that this is a wrong move and needs to be changed.

I have heard from an MS supporter that they are changing back to Fast Forward cursors, but only partly. I have e-mailed him for clarification, but I haven’t got any response. I therefore hoped someone in here knew something.

_________________
Regards
Peter


Top
 Profile  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Sun Nov 01, 2009 11:29 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
pdj wrote:
I have heard from an MS supporter that they are changing back to Fast Forward cursors, but only partly. I have e-mailed him for clarification, but I haven’t got any response. I therefore hoped someone in here knew something.


I think you will find this is just for GUI requests as I mentioned in my post above.

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 12:29 am 
Offline

Joined: Wed Nov 24, 1999 8:01 am
Posts: 547
Location: Aalborg,Denmark
Country: Denmark (dk)
David Singleton wrote:
I think you will find this is just for GUI requests as I mentioned in my post above.

Ok, I was told that is was "until a transaction had started". That didn't make any sense for me, but you might be right. I have only tried two builds after 27191, and they had so many errors I decided to stick with the rather old build. Now I'm just tring to decide if it is time to give it a go again...

_________________
Regards
Peter


Top
 Profile  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 9:47 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
@David:
That's why i supposed sqlindexes were not working 100% correctly...
:-k http://blogs.msdn.com/nav_developer/archive/2009/04/10/beware-the-sql-index-property-on-nav-5-0-sp1.aspx


Top
 Profile  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 11:11 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
Belias wrote:
@David:
That's why i supposed sqlindexes were not working 100% correctly...
:-k http://blogs.msdn.com/nav_developer/archive/2009/04/10/beware-the-sql-index-property-on-nav-5-0-sp1.aspx


No this is the issue. These functions used to work, in earlier versions of Navision, but don't work with the newest versions.

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 11:23 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
David Singleton wrote:
Belias wrote:
@David:
That's why i supposed sqlindexes were not working 100% correctly...
:-k http://blogs.msdn.com/nav_developer/archive/2009/04/10/beware-the-sql-index-property-on-nav-5-0-sp1.aspx


No this is the issue. These functions used to work, in earlier versions of Navision, but don't work with the newest versions.

#-o !!!eheh, what a fool...maybe i have to read more carefully...then the article i posted before (http://blogs.msdn.com/nav/archive/2009/ ... -uses.aspx) doesn't say anything about the possibility to make SQLIndexes differents from the original nav index...ok, now i got it, thanks for the explanation


Top
 Profile  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 2:49 pm 
Offline

Joined: Wed Nov 24, 1999 8:01 am
Posts: 547
Location: Aalborg,Denmark
Country: Denmark (dk)
pdj wrote:
You (and others) keep talking as if the SQLIndex and MaintainSQLIndex properties suddenly don’t work. I hope we agree that they both “work”, it is just the consequences of changing the SQL Index that is different due to the Dynamic Cursors. I am still customizing the SQL Index to optimize, so I disagree that we never should do it. We should just use more caution.

David Singleton wrote:
These functions used to work, in earlier versions of Navision, but don't work with the newest versions.

Why do you keep "blaming" the properties? The problem is not the properties - the problem is the cursors...

_________________
Regards
Peter


Top
 Profile  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 3:41 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
You misunderstand. I am saying these functions don't work, though maybe "are not usable anymore" or "do not serve the purpose they were originally intended for" or "USE WITH EXTREME CAUTION".

The reason they don't work is because Navision is forcing (or at least strongly suggesting) to SQL that it use Dynamic Cursors.

:mrgreen:

We are agreeing here trust me.

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 3:57 pm 
Offline

Joined: Wed Nov 24, 1999 8:01 am
Posts: 547
Location: Aalborg,Denmark
Country: Denmark (dk)
David Singleton wrote:
We are agreeing here trust me.

No worries then 8)

_________________
Regards
Peter


Top
 Profile  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 4:10 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
pdj wrote:
Why do you keep "blaming" the properties? The problem is not the properties - the problem is the cursors...

Technically yes but if you look at it from a "cause and effect" point of view (Adding simple and selective SQLIndex causes faster queries) then you can't deny that this "doesn't work" anymore. The SQLIndex property is still there, and it does what it is supposed to do as far as setting the index on the SQL Server table object. However, it is now more likely to cause even further performance problems. To me that is a step backward.

We used to be able to significantly tune an entire database (which came down to tuning about 20-30 tables) in about 2-3 days. All we did was analyze the indexes, modify them (i.e. simplify them in most cases), and we had huge successes and gains in performance. Now you have to match indexes on SQL Server with the key on NAV, so if you have to make keys more selective, you have to add the key, find all the code that reference that key and modify that too. Anyone who'se ever done a field length increase knows how much time this takes.

It is not fair to the customers, especially to those who have invested in tuning their databases. We should have had the option, this should be a database setting, or even a table setting.

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject: Re: Is NAV using Dynamic and/or FastForward cursors?
PostPosted: Mon Nov 02, 2009 4:46 pm 
Offline

Joined: Wed Nov 24, 1999 8:01 am
Posts: 547
Location: Aalborg,Denmark
Country: Denmark (dk)
Yes, it seems we all agree.
If I should "defend" the usage of Dynamic Cursors, it would be someting like this:
"It improved the results in the Application Benchmark Toolkit in the Cronus DB!"
This is just useless for the partners in the real world, and is making me wonder if Microsoft finally is forcing customers with more than 80-100 users to AX by putting these handcuffs on NAV. :-k

_________________
Regards
Peter


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: