Nav WS service and performance

yukon
Member Posts: 361
Hi expert,
In Nav ws we can get data follow two type ws.read and ws.readmultiple(filter,bookmarks,size). Read method is not problem. But when we use readmultiple has performance issue. When we set 0 in size, we will get all data from table. In my case, i have more than 10,000 record in my item table. So when i use readmultiple method data retrive time is so long. And then when we click paging index it reload all records again. If we use sql statement we can be do own paging. At Nav ... how can i do my own paging? ](*,)
Anybody has idea? ....
Happy CNY ....
Best Regards,
Yukon
In Nav ws we can get data follow two type ws.read and ws.readmultiple(filter,bookmarks,size). Read method is not problem. But when we use readmultiple has performance issue. When we set 0 in size, we will get all data from table. In my case, i have more than 10,000 record in my item table. So when i use readmultiple method data retrive time is so long. And then when we click paging index it reload all records again. If we use sql statement we can be do own paging. At Nav ... how can i do my own paging? ](*,)
Anybody has idea? ....
Happy CNY ....
Best Regards,
Yukon
Make Simple & Easy
0
Comments
-
It is why there is the size and the bookmark. Bookmark is the record, from which you want to read the data, the size is number of records. Thusif you are displaying 100 records per page, just use size 100 and keep the bookmark of the first/last entry to read the data from...0
-
Hi Kine,
Thank for your suggestion.Thusif you are displaying 100 records per page, just use size 100 and keep the bookmark of the first/last entry to read the data from...
I have 1000 records in my tbl. Page size is 10 record per page. so i have 100 paging. Ok! I bookmarks 1st record and 10th record. When i click 2nd paging i can be data without 1-10 record. But when i click last paging, it is load (1000-10) again.
So .... any idea ?
Best Regards,
YukonMake Simple & Easy0 -
Than you need somehow get the bookmark of the last-10 record and use this to read the data. May be this is the problem, how to get the last-10 record bookmark... :-)0
-
Hi Kine,how to get the last-10 record bookmark...
Best Regards,
YukonMake Simple & Easy0 -
Hi all,
It solved by myself.If we want to get data by range, we can be use (+-) in setsize. eg ws.readmultiple(ur_filters,ur_bookmarks,(+-intsetsize)).
Best Regards,
YukonMake Simple & Easy0
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