zorba-processor / zorba

Zorba - the NoSQL processor
http://zorba.io
Apache License 2.0
42 stars 16 forks source link

Output Zorba as stream, less IO on disk #18

Closed mail2morten closed 5 years ago

mail2morten commented 5 years ago

Dear Zorba developers,

Im currently using zorba to serialize text to a file.

We are doing for a lot of small files, and I want improve performance with taking away IO overhead.

Writing the data to a file only makes the process more complex, and I would want to stream the result.

Currently I am using zorba.exe like this with Powershell

& $zorbaInstallationPath -e input-context=$sourceFileName -f -q $xqueryFile -o $outputFileName  -i --serialize-text -z omit-xml-declaration=yes

return $outputFileName

I was hoping and been looking for a way to omit saving the file on disk, and just pass it on as stream/text in memory

I will be looking forward to your answer.

mail2morten commented 5 years ago

I foiund that removing '-o $outputFileName' solves my problem, so there is no reason to keep this open. Too bad that no one reacted.

cezarfx commented 5 years ago

Hi,

Glad to hear that you solved it, can you share more with us the context in which you're using Zorba?

Cezar

On Thu, Apr 25, 2019 at 1:32 AM mail2morten notifications@github.com wrote:

Closed #18 https://github.com/zorba-processor/zorba/issues/18.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zorba-processor/zorba/issues/18#event-2299221189, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFE6XQUBBRHYLB36D5ALX3PSFF6ZANCNFSM4HIBUNGA .