The repository has not been cloned yet. Run the following command first
to clone the repo, check out the target commit, and install dependencies:
bash
bash /setup_files/setup.sh
The code will then be available at /testbed.
You are working on the repository intake/intake (instance: intake__intake-335).
The code is located in /testbed.
##333 Catalogs as catalog entries and _load() performance
Over at intake-dcat I've got things set up so that DCAT catalogs are a data source themselves, as described in the intake docs. I was a bit surprised to see that every access of the catalog source calls the _load() function on it. In this case, that involves a network request for a few-megabyte file, so inspecting the catalog contents becomes pretty laggy.
Is this behavior intended? I might expect the catalog source to not need to re-initialize/reload itself unless explicitly forced to.
Is there a recommended way around this? I expect these catalogs to be slowly moving, so I can cache the entries after the first load, and then shortcut _load() thereafter. But perhaps there is a way that is considered more idiomatic for intake?