Customer Portal

move/copy files very slow when overwriting

Comments 3

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hello Will,
    the way how the MoveFiles component actually moves files to a remote location via SFTP heavily depends on the SFTP utility and CloverETL version that you are using. Could you please get back to us with more details so that we can suggest the most suitable resolution?

      1. What is your SFTP tool that you are taking advantage of?
      2. Do you connect by using a user/password logon credentials or you are using a certificate?
      3. What is your CloverETL version (Designer and/or Server)?
      4. What is the approximate size of a single input file?

    Regards,
  • Avatar
    wills__aperio
    0
    Comment actions Permalink
    hello,

    • We are simply calling the files via SFTP in the Move/CopyFiles component --( sftp://username:password@server/path/to/files )-- I'm not aware of Clover using a 3rd party utility to perform this.

    • Username:password (see above)

    • Designer v4.4.0.011 / Server v4.4.0.11

    • There are about 3500 files, ranging between 3kb and 300kb, with the average being about 25kb


    thank you!
  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hi wills__aperio,
    thank you for the provided details. After a close inspection, it appears that Clover keeps listing the entire target directory content every time there is a file that is supposed to be overwritten. Such behavior, however, does not seem to be correct. I have logged the following issue in JIRA so that it gets reviewed and corrected by our developers: https://bug.javlin.eu/browse/CLO-11223.
    One of the workaround approaches, as you rightly said, is having the target directory content cleaned up before the MoveFiles component comes into play. You can either consider cleaning up the entire target directory content or you can clean up only those files that are about to be overwritten. The latter option can be achieved by using the ListFiles component together with the DeleteFiles component to run before (in an earlier phase than) the MoveFiles component. Another option is to take advantage of a custom Java code that would zip the files before the moving, move the single zipped file via SFTP and unzip the single zipped file in the target directory.
    Regards,

Please sign in to leave a comment.