Home Forums Development SampleData Size Limitation

Viewing 1 reply thread
  • Author
    Posts
    • #329
      Ed ShawEd Shaw
      Keymaster

      Another challenge we’ve been having with the SampleDataLoader is the data limitation on the “getData” methods.

      Some of the data we load or migrate are several thousand objects, eg. Acts, and Holdables for 2 quick examples. When trying to load these, the system errors out saying:

      This prevents us from entering a good amount of data. This might just be a hard limitation in the framework code since no one should write a function that long and unoptimized, however for data load purposes, we need functions to handle several thousand lines of code.

      What can we do about this issue?

      0
    • #332
      Ed ShawEd Shaw
      Keymaster

      This means that there are more than 128KB of instructions inside a function.
      It looks like the script should be less code-intensive and more data-intensive.

      I have edited the script somewhat, please try the attached version.
      Also, it will go faster, if you read all the currencies in one shot and put them into a hash table ((make-hashtable), (hashtable-…))

      Or cache them, e.g. with SysCache’put/getTransient

      1
Viewing 1 reply thread
  • You must be logged in to reply to this topic.