Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums OroPlatform OroPlatform – How do I? Questions ImportExportBundle write -> read -> write

This topic contains 1 reply, has 2 voices, and was last updated by  igalayev 2 months, 1 week ago.

  • Creator
  • #62977


    I created custom pdf export (based on xlsx export) for datagrid and noticed a problem.
    Handler works like that:
    1. Create file with my writer,
    2. read file with my reader,
    3. create file again based on reader data.
    Its ok for partial save, but with pdf there is a problem.
    I cannot read pdf and write it again. For now, I created reader that return file_get_content data, and writer checks if there was array of columns passed to write, or one item with data from reader. Not so nice solution.
    Is there any possibility to skip file reading? I noticed that export handler always do it with mergeFiles method.

Viewing 1 replies (of 1 total)
  • Author
  • #62979


    as for now export creates several jobs which run in parallel using message queue consumer.
    So each job processes a part of input data and writes it to a temporary file.
    At the final stage of export this files are merged into one file as you already noticed.
    So it’s not possible to skip this logic.

    On the other hand if your properly implemented reader and writer then everything should work fine.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.