Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: improving performance of script

  1. #1
    Join Date
    Sep 2005

    Default RE: improving performance of script

    good luck on that, Jeet. he he.

  2. #2
    Join Date
    Nov 1999

    Default improving performance of script

    (original message by anyoldlogin, set format to Plain)

    I have a very large Fixed text file. Each line has a position that indicates the line type. Each line type loads into a separate database table. Currently I split this process in two steps 1) create foour new files for each of the four line types using text file in, filter and text file out; 2) Load each of four file types translateing them to the proper columns for the the database table, use select to filter out unwanted information and finally use table load to load the database.

    This process works but is obviously slow due to the disk reads and writes.

    Is there any way to grab singles lines from fixed files and send them down separate paths where there data can be extracted based upon the line type. Sorry this message is so long.


  3. #3
    Join Date
    Nov 1999

    Default RE: improving performance of script

    Usually these kind of files come from Cobol programs with redefine sections.
    At the moment, you need to apply a filter in Kettle and read the file multiple times: one time per record layout.

    Of-course, this too is a sub-optimal solution, and I've had this question before, so I'm thinking adding a variable number of output-streams to TextFileInput so that you can have N targets for N different record layouts in the text-file(s).

    There are only 2 main issues at the moment with this:
    - the dialog will become (too) complex
    - backward compatibility

    Hope this clears some stuff up.

    Please do open a feature request for this as I don't have the time at the moment. ;-)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.