Hello Navision has introduced with 5.0 SP1 Bulk insert.
By my definition Bulk insert is actualling using BULK INSERT statement.
What I see in query profiler is
insert record one
insert record two.
etc etc.
Is this actually bulk insert? or just that the records not insert until the commit and then inserted?
Also if they are calling insert, wouldn't it be faster to use union all statement instead.
read this post and performance difference
http://blog.sqlauthority.com/2007/06/08 ... union-all/
Thank you.
Comments
As far as the way the inserts are called, I don't know maybe MS can answer this?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
It just buffers the inserts until a COMMIT is called or until you do some other action (SELECT,MODIFY,DELETE,...) on that table.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks for confirming that it's not really bulk insert.
So since it's not a bulk insert and just buffering till the end, why aren't they calling insert once and doing a union on all the parameters. This will ave a lot better performance.
You know, this change was optimal from "gain/cost" ratio...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I would say buffering insert is a bigger change, Replacing SIFT is a bigger change.
Calling
instead of
is minor, and the performance difference huge. 100 or 1000 records. :whistle:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
You'll be doing UNION on all the fields. UNIONALL.
All we are doing is stipulating. If MS could give an answer it would be helpful.
All, I'm doing is asking a question.
I was asking a while back about indexed views that could be implemented instead of SIFT, and behold SP1 made the change.
RIS Plus, LLC
I wouldn't recommended it. It's probably better to make a ruckus at the forums instead of working in the development team.
You may be bogged down by politics instead of doing what you're doing now.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
http://dynamicsuser.net/blogs/navsustat ... 0-sp1.aspx
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!