I have a few custom lists that have ~10-15 records...
# suitescript
s
I have a few custom lists that have ~10-15 records in them. The fields don’t change very often at all and could definitely live in the N/cache module. I want to cache the entire collection of lists in one cache key as it will be way under the 500kb limit. Now the question becomes how do I query and get all the records in the list? I could start a loop and load each records by its internal id, when records stop loading I would have the list. (this would take a lot of governance for each cache miss) A different strategy I thought of was to search each list with a filter like this:
["name", search.Operator.ISNOT, "WTFWTFWTF"]
and then we would just not label anything in the list “WTFWTFWTF”… This is less governance, but seems very hacky… Is there a better way to get all the records in a list?