Refresh Service Tier cache after SQL Injection
StLi
Member Posts: 83
Hi!
Disclaimer: Any help is appreciated but PLEASE don't play captain hindside (southpark reference) here. We did NOT recommend this solution and we currently don't have the resources to change it. So, any thing along the line of "you shouldn't do it that way in the first place" is a known fact and doesn't help in the current situation. We would've recommended a Webservice or an import set up on an interval but we didn't have any say in it. - So, thank you. But please stay on topic.
I work for a solution center. Our customer implemented a 3rd party software and set it up to inject data into Navisions' tables. Expecting to have the data right available in navision.
As some of you might know, the Service Tier enhances performance by caching data of recent requests (not expecting any tinkering from outside) which renders a problem here because the user opens a page with a certain filter, then usues the 3rd party software and - due to the cache - doesn't see any changes on navision side (because the service tier doesn't realise that data has been added) The software they "implemented" just sends simple INSERT-queries to the SQL.
I'm looking for any way to manually trigger an update of the Service-Tiers cache. Or any other solution that will update the data in Navision reliably without rebuilding the current import machanism.
You can manually refresh the pages content and get the newly injected lines. However to do so, ther must at least be one record shown on the page (which is usally not the case before the 3rd party software did it's job) to enable the refresh button.
Thanks a lot for your input.
Regards StLi
Disclaimer: Any help is appreciated but PLEASE don't play captain hindside (southpark reference) here. We did NOT recommend this solution and we currently don't have the resources to change it. So, any thing along the line of "you shouldn't do it that way in the first place" is a known fact and doesn't help in the current situation. We would've recommended a Webservice or an import set up on an interval but we didn't have any say in it. - So, thank you. But please stay on topic.
I work for a solution center. Our customer implemented a 3rd party software and set it up to inject data into Navisions' tables. Expecting to have the data right available in navision.
As some of you might know, the Service Tier enhances performance by caching data of recent requests (not expecting any tinkering from outside) which renders a problem here because the user opens a page with a certain filter, then usues the 3rd party software and - due to the cache - doesn't see any changes on navision side (because the service tier doesn't realise that data has been added) The software they "implemented" just sends simple INSERT-queries to the SQL.
I'm looking for any way to manually trigger an update of the Service-Tiers cache. Or any other solution that will update the data in Navision reliably without rebuilding the current import machanism.
You can manually refresh the pages content and get the newly injected lines. However to do so, ther must at least be one record shown on the page (which is usally not the case before the 3rd party software did it's job) to enable the refresh button.
Thanks a lot for your input.
Regards StLi
1
Best Answers
-
I haven't really used this command in production, but maybe this may be interesting:
https://msdn.microsoft.com/en-us/library/dd355033(v=nav.90).aspx
Also always
for SouthPark references. Austrian NAV/BC Dev6 -
Create a NAS job running as often as possible.
Calling SELECTLATESTVERSION on the tables in question (you might also have to actually read something from the tables to make it work - you'll have to test that).
And when performance suffers - please note "Disclaimer: Any comments is appreciated but PLEASE don't play captain hindside (southpark reference) here. I do not recommend this solution and you shouldn't be injecting SQL data in the first place" ;-)5
Answers
-
I haven't really used this command in production, but maybe this may be interesting:
https://msdn.microsoft.com/en-us/library/dd355033(v=nav.90).aspx
Also always
for SouthPark references. Austrian NAV/BC Dev6 -
Create a NAS job running as often as possible.
Calling SELECTLATESTVERSION on the tables in question (you might also have to actually read something from the tables to make it work - you'll have to test that).
And when performance suffers - please note "Disclaimer: Any comments is appreciated but PLEASE don't play captain hindside (southpark reference) here. I do not recommend this solution and you shouldn't be injecting SQL data in the first place" ;-)5 -
All right, I didn't know about the SELECTLATESTVERSION command (not really needed on a daily basis) but it will do until we find the time to work out a more desirable solution.
Thank you.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
