03-27-2016 01:51 PM
I am interested in finding out what the standard operating flow is for deploying a SAS VA app to many hundreds (possibly thousands) of users who have the option of utilizing a stored process within the app. This stored process allows the user to make edits to the underlying LASR table. I would obviously like the user to see the changes immediately on SAS VA.
It seems that this is exactly what proc IMSTAT was built for but currently we don't have the license for it.
Below are my assumptions and questions for the process flow both with and without proc imstat. Please correct any wrong assumptions in the flows below and answer questions if possible.
Flow With Proc IMSTAT
1. Stored process gets kicked off.
2. IMSTAT does the updates. Updates should happen extremely fast (as fast as VA makes interactions in filters - which has been extremely fast for our 4 million row LASR table)
Questions with Proc IMSTAT
1. Since therecould be many concurrent updates happening at the same time, how does proc IMSTAT deal with updates happening at the same time? Is there locking/waiting available?
2. What happens when we want to replace the entire LASR table (because of some new source data not from the stored process)? Is there always going to be down time when this replacement is made because the old LASR table must be deleted?
Flow without Proc IMSTAT
1. Since I can't make updates directly to the table (outside of appends), I would have to delete the current LASR table.
2. Then I would make updates to the LASR table outside of the LASR server which would be very slow on a 4 million row table. Would have to lock the table to do updates one request at a time.
3. Reload table into LASR which is also slow
4. All users would experience report downtime during this time.
5. This should be done only seldomly - perhaps once a day to avoid report downtime.
Questions without Proc IMSTAT
1. This is not a feasible solution correct? Or are there workarounds?
Thanks for any help provided.
05-24-2016 09:53 AM
The IMSTAT procedure can help with most of what you identify. I don't know many details of licensing, but check whether you can use the data and server management statements for the IMSTAT procedure, such as the TABLE and UPDATE statements.
For your "Flow with PROC IMSTAT" comments:
For the "Flow without PROC IMSTAT", consider reording the steps:
1) Update the “original” data (SAS data set, Oracle, other data source) first.
2) DROPTABLE the in-memory table and then PROC LASR ADD from the updated replacement
Users will experience downtime between the DROPTABLE and ADD.
Some of what I wrote assumes a distributed server. Let me know what I can clarify, and I'm really hoping that you have the IMSTAT procedure and find it useful.