Change how initial data is imported? #140
Replies: 3 comments 5 replies
-
I've been exploring building a simpler mysql import cli to stream data to mysql, but I have a hard time gaining significant space savings. The mariadb client is about 3Mb and my basic rust cli is ~2.4Mb which I don't find significant enough. I'd like it to be closer to 0.5Mb; basically speak the wire protocol and pass sql as-is. |
Beta Was this translation helpful? Give feedback.
-
I think having a client in a server image is what you expect to interact with the server when needed. Privileges, data, ... |
Beta Was this translation helpful? Give feedback.
-
Just created a PR to reflect the outcome of this discussion: #177 |
Beta Was this translation helpful? Give feedback.
-
In this issue I have explored the option to remove installing a mysql client for loading initial data. Not having a client available will not work for most decently sized imports:
stdin
has a limit of 60,000 bytes--init-file
has a limit of 20,000 bytesThe reason I'm not a fan is that we connect to the internet to get this done. I see three options forward (see below) What do you think is the best option?
My picks would be either no change or add a mysql client; it can be useful for other reasons (tests, improved health check, fully no-root runtime, convenience).
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions