OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums 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 years, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #36543


    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
  • #36544


    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)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No