-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
sql.js size optimization #74
Comments
Yes, it would be possible, and I encourage you to try it and make pull requests. You will first need to compile the amalgamation (sqlite3.c), and than compile it to sql.js with the right options. |
But don't expect it to cut the size of sql.js down by more than a half... (I bet you won't pass under 1Mb). |
Thanks, I'll give it a go during this week. |
Perfect :) I recently fixed a bug in emscripten that prevented sql.js from compiling, so you might have to use the incoming branch of emscripten ( https://github.com/kripken/emscripten ) for the last part of the compilation. |
I started some work on this Currently I'm only removing the options that are really not useful in |
Great! I'll probably dig into this tomorrow. |
By the way, I've built a small library to import from spreadsheets (so far only google spreadsheets) to a sql.js database, all online. It was part of another project. http://github.com/lalkmim/sheets2sqlite |
Very interesting! I'm always glad to learn about interesting uses of sql.js. |
You can see the work on the |
Not exactly a issue, more of a question/idea. I'm trying for a serverless application, and I need to run a few complex queries (tree-like and such). The data would be imported from another source on load time and there would be no need to maintain it, just query. In the end, I would need a sql.js that could:
Do you know if these are achievable on compile time? And would you consider making a sql.js version with such features? If possible, I imagine this could shrink the sql.js a lot.
The text was updated successfully, but these errors were encountered: