Updating metadata via script slower in the latest version

Started by ubacher, November 22, 2018, 02:08:02 PM

Previous topic - Next topic

ubacher

I noticed that my scripts which update metadata execute significantly slower than in the previous versions.
IMWS.post('v1/metadata/writeback',...
Is that an unintended side-effect of the "speed-up" modifications? Is there something I can do to remediate this?

I attach a log file in debug mode.
Script start/end marked with A>

The dng files processed are approx 23 Mb in size, I have an SSD on a fast laptop.

Mario

You are calling the writeback call from an app? This is not recommended, for many reasons.
Probably IMatch is currently doing other things, and then you hack into the middle with a writeback call from your app.

The code used by IMWS for writeback has not changed. And the speed improvement only grips when the user triggers the write-back directly from the File Window or the Command > Write-back. Not for background write-backs as triggered by this limited API endpoint. We discussed this in the past, how this is implemented.

I see no write-back in your log file at all. The entry to check for is PTMetabase::WriteBack
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook