<https://github.com/meltano/meltano/issues/2848> <...
# troubleshooting
v
https://github.com/meltano/meltano/issues/2848 @jan_soubusta regarding your recent ask about Catalog caching in SFDC. That thread has gone in a few different directions so I didn't want to clutter it
I had the opposite problem from you I think. I wanted the catalog to refresh more often
j
Subscribed to the issue, thanks for mentioning it! It strongly depends on the type of tap. If the refresh is very slow, you want to suppress the refresh, and you are ok to be careful when you have to trigger it.
v
Yeah I forgot to mention, a good idea in there I think was TTL's for caching then you could tweak what your ttl is 🤷
j
The discussions here in Slack and in the issues are focused on allowing forcing of refresh of catalog. My requirement is the opposite - allow forcing not refreshing catalog.
Questions: • if I specify a list of particular fields in the tap select section (no wildcard used), would it be possible to skip the refresh of the catalog always? • When I run tap in a pipeline, I always lose .meltano/run between runs. Does it mean that the refresh is executed always? Does not seem so, when I look at pipeline jobs runtime. Is the catalog cached also in the state backend(in my case S3)?
v
if I specify a list of particular fields in the tap select section (no wildcard used), would it be possible to skip the refresh of the catalog always?
should work, it's designed for dev workloads so it doesn't refresh all the time.
When I run tap in a pipeline, I always lose .meltano/run between runs. Does it mean that the refresh is executed always? Does not seem so, when I look at pipeline jobs runtime. Is the catalog cached also in the state backend(in my case S3)?
If you lose that every time then yes it has to refresh the catalog everytime. catalog is cached in
.run
j
Eh, I was wrong. Last pipeline was running 4min30 out of which 3min took the catalog refresh, Horrible.
Will focus on caching .run in Gitlab and reuse it in following pipeline runs.
Strangely, I do not see folders as you described:
Should I cache .meltano/cache?
v
I lied to you I'm sorry
.meltano/run
is the right dir!
j
I see some data in this folder only for targets + lock file. Where exactly is the tap-salesforce cache(catalog) stored?
v
The .meltano/run/tap-salesforce folder should have it, not sure why you don't 🤷 have to see how you run it
j
On the other hand, the file
.meltano/cache/discovery.yml
seems to contain relevant data
I run
meltano --environment dev_local run tap-salesforce target-snowflake
v
The run dir should have a
tap-name
folder, the fact yours doesn't means something else is going on.
has to exist as that's where the
config
file and
catalog
files go
j
ok, will bootstrap everything from scratch and run it again, we'll see if my local env gets "fixed" 😉