nav network protocol: native vs. sql database

stefan668668stefan668668 Member Posts: 3
Hi,
in our navision system one program code searches for certain strings and values in a lot of database rows resulting in a lot of tcp/ip messages between the client and the server. Even after everything is cached the operation takes 25secs for sending the ~128000 very small packets (84% < 320 bytes). The behaviour is nearly the same on physical 1 gigabit network as on a virtual test-setup where client and native server runs on the same computer. So the network protocol overhead is the "problem".

Is there a fundamental change in how a "sql-navision client" would execute the code on the client and access the sql-database on the server?

Hope you get the problem ;)

Greetings, Stefan

Comments

  • ara3nara3n Member Posts: 9,256
    On sql server you have several protocols to choose from. Shared Memory, Named Pipes, and TCP/IP Sockets.
    Shared memory bypasses the network stack so it's the most efficient protocol.

    Here is the detail

    http://msdn.microsoft.com/en-us/library/ms187892.aspx

    Nav I believe only uses Named pipes and TCP/IP.

    So you would get the same performance. Running the same C/Side code.
    If you are looping through ~100K records, you probably would have the same performance in C/Side.
    One way you bypass all this CAL code is using ADO. This allows you to let sql do the processing for you and return only the data set you really need.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • stefan668668stefan668668 Member Posts: 3
    oh great, thanks for the quick answer!

    so do I understand that correctly that the client basically stays the same and just the database-backend changes?

    greetinx
  • ara3nara3n Member Posts: 9,256
    Yes. But you have more tools to improve your code to perform better.

    For example. Some customer running Inventory valuation report take 10 hours. With sql and ADO. you can run it within 4 minutes.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.