#2415 Cache discovered extractor catalog when running pipeline
Issue created by
MeltyBot
Migrated from GitLab:
https://gitlab.com/meltano/meltano/-/issues/2460
Originally created by @ishan.mails on 2020-11-25 15
5608
---
Problem to solve
(Summarize the problem we are trying to solve in the form of we need to do [A], so that [B] can [C])
We need to enable catalog to be cached and reused, so that meltano does not attempt to generate the entire catalog for each elt run.
I believe the catalog generation for each run turns out to be a costly operation and instead there can be some mechanism to preserve the catalog and refresh it on-demand or based on a schedule.
Target audience
This could be an opt-in feature as well. Meltano already allows to manually specify a catalog. It would be great if the meltano utilities such as schema filters can be applied on a manual catalog as well.
Further details
During my testing with tap-salesforce, the catalog file comes out to be 10MB with 1000 entities. It takes considerable amount of time and API calls to generate the catalog for each elt run when a typical use-case would involve syncing only 5-10 entities.
Proposal
There is already an option to specify the catalog file. I believe we only apply the same rules for a manual catalog, as it is done on a discovered catalog.
What does success look like, and how can we measure that?
(Define both the success metrics and acceptance criteria. Note that success metrics indicate the desired business outcomes, while acceptance criteria indicate when the solution is working correctly. If there is no way to measure success, link to an issue that will implement a way to measure this)
Regression test
(Ensure the feature doesn't cause any regressions)
• Write adequate test cases and submit test results
• Test results should be reviewed by a person from the team
Links / references
Please note that this was taken from GitLab, to be changed accordingly
meltano/meltano