Locking in Multiuser environment

harsh_bandlishharsh_bandlish Member Posts: 5
Current Scenario : Our client is working in multiuser environment at 13 differnt sites and with 35 users (including 20 CITRIX users). and around 15 GB of database.


Problem : The problem is lots of sales reports are requesting for "Posted structure line" table. so whenever anyone run one of those reports, it locks the entire table, which even not allow to post orders by rest of the user.

and if the table is locked by some other user then the report takes huge amount of time to execute.

Request:

So, is there anyway through which we can only apply read lock onto the required tables, so that rest of our requests won't effected.

Suggest the solution either from Navision side or from SQL side.

](*,)
Harsh

Comments

  • ara3nara3n Member Posts: 9,257
    what is posted structure line? is this a modification in your system?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • hedegaardhedegaard Member Posts: 25
    On the reports there is a property called "Transaction type". Set this property to "Report".

    That should solve the problem.
  • harsh_bandlishharsh_bandlish Member Posts: 5
    no its not the customization its a base table ID - 13798 named "Posted Str Order Line Details". [-(
    Harsh
  • ara3nara3n Member Posts: 9,257
    Looks like Indian local customization.

    Make sure the report's TransactionType are set to UpdateNoLocks.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • sabathsabath Member Posts: 3
    harsh,

    Which version of Navision are you running on?

    Ideally in a report you would not lock tables. If it is so i would suggest, you need to review the code.

    It is the posting routines which cause locks, which can be resolved. These again are due to code related to Localization. You will also need to consider weather the hardware is set as per requirements of Navision for the no. of users using the system.

    Regards,
    Manoj
Sign In or Register to comment.