Using cache in filtering script? #1551
Replies: 2 comments 4 replies
-
can you show off your script for me? it would likely help to get me an idea of how could such a caching work |
Beta Was this translation helpful? Give feedback.
-
I'm using EDGAR Latest filings RSS feed https://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent. I am mapping 10 digits company CIK numbers from the title (the one in brackets) to corresponding trading symbols for ones that have such from here https://www.sec.gov/file/company-tickers-exchange.
ciks dictionary initiates every time the script is run and it is slow. Can I cache it so to initiate it only ones and share it b/w different calls of the script? |
Beta Was this translation helpful? Give feedback.
-
I have a filter script that maps numeric ids to names and it works. The problem is that the dictionary with ids is about 8000 entries and it initiates every time the filter is executed. Is there a way to cache the dictionary and access it inside the script?
Beta Was this translation helpful? Give feedback.
All reactions