Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

new compressor not working

Answered
Paul Schlichter asked on January 2, 2020

The latest flexmonster-compressor.php (2.7.22). However I did not update the compressor since June of 2019 so the issue may have existed in earlier updates.
When I try to load the ocsv file, it does not complete. If I open the ocsv file it looks much different than the older version.
Thanks
Paul

3 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster January 3, 2020

Hi Paul,
 
Thank you for reaching out.
 
Please note that due to recent changes in the Compressor’s logic, it no longer compresses the data as before (the Compressor’s output format is not OCSV). 
 
Now the Compressor’s purpose is to assist in preparing the data that is fetched from the database to be passed to Flexmonster in the correct format (CSV).
 
The reasons for the changes in the Flexmonster Data Compressor are:

  1. The OCSV approach requires data compression and decompression time, and thus, is not always more efficient than CSV.
  2. With large data sets, OCSV still doesn’t solve the problem. With small file sizes, the difference is not significant.
  3. CSV output is more standardized and simpler to understand

These changes have been made for the sake of improving the current behavior with the prospect of providing a more efficient and up to date solution in future releases.
 
Speaking of your specific issue with unsuccessful loading of OCSV file, could you please give us some more details on this so that we can investigate it further?
 
Looking forward to hearing back from you.
 
Best regards,
Mykhailo

Public
Paul Schlichter January 4, 2020

Thanks for the information.
Can you provide some examples as to how to use the compressor in the php file and also how to link to the output file?
Thanks
 

Public
Vera Didenko Flexmonster January 8, 2020

Hello, Paul,
 
Thank you for your question.
 
Please see the following JSFiddle example that is using the PHP compressor: https://jsfiddle.net/flexmonster/1a6gdf37/
The sample shows the way Flexmonster is linked to the Compressor’s output by specifying the filename parameter.
 
Also, we have several examples on how to use the Compressor in our PHP tutorial: https://www.flexmonster.com/doc/connecting-to-relational-database-with-php/
We hope this helps.
 
Please let us know if any additional questions arise.
 
Best regards,
Vera

Please login or Register to Submit Answer