Question
Bluerose Technology
IN
Last activity: 2 Aug 2023 13:04 EDT
Clear savable data page?
Hi Team,
I have a requirement where I have a list of files on WO, to be stored in the Pega repository. I have used D_pxNewFile API, which is working absolutely fine.
I have a few queries about best practices:
1. I'm iterating over a page list(getting the files for say link attachments). Now I'm setting my contents (base64 encoded) on the D_pxNewFile API page. Seems this API is auto-commit, there is no effect, though, we check/uncheck the write-now option when we call the Save-DataPage method
2. We are loading the stream, which is bigger in size, do we need to flush the D_pxNewFile data page, once the write now(commit for each file for say) happens?
3. Usually, we do Page-Remove once we initiate any page, but when we use this Savable data page when this page gets flushed out of the memory, is based on the scope?
4. Consider the scenario, in the loop one of the deferred saves fails, and the remaining all next to the failed deferred save will be failed(if my understanding is correct about the deferred save concept), as D_pxNewFile is auto-commit if file creation fails do we need to skip the next file creations in the loop? or will it create the next files coming next in the loop?
Please suggest, Thanks in advance.