Craig
10/27/2025, 9:59 AMMemoization is a computer programming optimization technique that speeds up programs by storing the results of expensive function calls and returning the cached result when the same inputs occur again
I want to add a beforeSave() function to journal records so I can map/swap account IDs before a journal is saved. I have the mapping stored in a custom record; I'm looking at ways to make this as quick as possible.
Are N/cache reads quicker than searches or record loads? I could always store the mapping in the cache based on what's in the mapping table/record. If the mapping record changes, I can force the new values into the cache and expire the old values.Sherman Luong
10/27/2025, 10:53 AMChris
10/27/2025, 9:53 PMN/cache works great for this sort of stuff. Once cached, lookups happen in a few milliseconds.tuli
10/30/2025, 12:49 PMCraig
10/30/2025, 12:49 PMCraig
10/30/2025, 12:49 PMCraig
10/30/2025, 12:50 PMtuli
10/30/2025, 12:59 PMtuli
10/30/2025, 1:03 PMChris
10/30/2025, 1:05 PMN/cache along with a UE script handles this very cleanly and efficiently.tuli
10/30/2025, 1:11 PMCraig
10/30/2025, 7:01 PMCraig
10/30/2025, 7:02 PM