-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: using elm-serialize #20
Comments
Thank you for sharing this idea. It looks like it would help to avoid that limit. As far as I see, that package uses a different interface than the JSON libraries. So would it require changing the compiler to emit different code? Mid-term, it looks like said limit would be lifted by a change in the upstream project (linked issue) or the switch of Elm Fullstack to the PineVM. PineVM has its own persistence infrastructure model anyway. |
Is this issue resolved in the short term via this commit and release 2023-11-15? |
I now ran a test with version 2023-11-15 to find out. I tested with database sizes up to 250 MB, and that worked. So that limit of 166,6 MB is resolved. However, at the moment, the backend still relies on compiling Elm to JavaScript and running that in a JS engine. And JS engines introduce various bottlenecks. With version 2023-11-15, you will eventually run into limits related to the JavaScript approach with larger database sizes. We made good progress this year with the new compiler and runtime for Elm/Pine and declarative programming languages in general. |
I want to make a suggestion, hoping it’s useful. 😁
I’ve read this response about the maximum supported model size of 166,6 MB (JSON encoded).
The package
elm-serialize
produces compressed JSON encoding.There is a post on the Elm Discourse and it proved to be beneficial in
elm-review
too:The text was updated successfully, but these errors were encountered: