While uploading a GH file (~2MB in size), I stumbled upon this error. Could someone please explain what exactly are these 400’000 units?
By best guess right now is that these are 400’000 Bytes that must contain all the information about parameters (name, default value, min & max,…). If so, do higher plans support higher limits (I’m using Starter plan right now)? Or maybe I could, for example, shorten parameter names so everything would fit in this ~0.4 MB limit?
I’m almost half way there with this GH file that could contain even 400 parameters at the end. Are there other problems I could encounter? Splitting the file into multiple models is not an option.
This happens due to a technical limit on the size the definition of your model (including the definitions of parameters, output, and exports). This size is limited to roughly 400kB in order to keep access to model data as fast as possible. It’s a hard limit. Yes, you could shorten parameter names, and also lower the number of outputs.
Not really. You confirmed that these units are indeed bytes, but I can’t see how 0.4MB can nowdays be a performance issue, when the whole model can weigh up to a GB in Enterprise plan. I get it - nobody (except me) needs hundreds of parameters for one model, but this still feels like a “nobody needs that much” limit, not an actual technical issue.
It’s a technical limit, you can find details about it here.
Of course we could work around this by splitting the model definition into pieces, storing it using another DB, etc, but the key point is that this would impact performance and we want to avoid that. ShapeDiver offers great solutions to build 3D apps using multiple Grasshopper models, which not only allows to avoid this limitation but improves performance and maintainability in general.
Can you explain your use case for using so many parameters?