×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Nevermind. I got the answer in a different form. The program abended. Apparently, it exceeded the max space for the YAJL buffer.
-----Original Message-----
From: smith5646midrange@xxxxxxxxx <smith5646midrange@xxxxxxxxx>
Sent: Thursday, January 23, 2025 2:27 PM
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: YAJL and BIG files
I have a program that uses SQL to read a table and write the JSON reformatted data to the IFS using YAJL. This is going to be a BIG file. Since YAJL builds the file in memory, this is going to consume a LOT of memory.
In the Windows world, when a program needs memory and none is available, Windows shuffles some memory to disk and frees up that memory. Does the IBM i basically work the same way or am I going to eat all of the memory and crash the machine? ☹
I'm thinking that I might need to rewrite the program to get away from YAJL and just manually write each record to the IFS as it is processed.
Thoughts?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.