Skip to content

Improve sql-storage tile writing to allow the sql-driver to split network-packages #694

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

Open
SheepReaper opened this issue May 8, 2025 · 2 comments

Comments

@SheepReaper
Copy link

I use pebblehost. They provide MySQL databases, but the server has max_allowed_packet set to 16777216 (16M), and we cannot raise it. Bluemap tries to send packets of 25 M. Short of modifying the JDBC driver directly, I'm unsure how to set the client-side limit. I want Bluemap to consider exposing it in its config if there is one. Currently, I cannot use SQL storage on my host due to this constraint. Not the end of the world, though. If it's impossible, I don't know the limitations of the JDBC driver (I'm using a forge/neoforge mod that wraps the vanilla MySQL driver jar).

@TBlueF
Copy link
Member

TBlueF commented May 8, 2025

BlueMap already exposes the entire jdbc-config by allowing you to set both the full jdbc-string (connection-url) and the properties (connection-properties) that it passes to the jdbc-driver.

The only file - unless you turned compression off - bluemap saves to the db that could theoretically somehow reach sizes of 25M is the textures.json containing all the texture-data. So if you have a very high-resolution resourcepack or a ton of mods that add new textures, then this file gets bigger.

I read of ways to split a single blob INSERT/REPLACE into multiple packets when sending it to the server, i will take a look if thats possible to implement.

Other then that, right now your only options are to increase that value on the server, or somehow reduce the texture-atlas size, by removing the high-resolution resourcepack or loading less modded textures with bluemap.

@SheepReaper
Copy link
Author

It's just the ATM10 mod pack, no modifications besides adding bluemap. And I just let bluemap alone with its default settings except for SQL obviously. Did I miss a setting to exclude specific resource packs from blue map's discovery? Maybe store the atlas in per-pack shards and assemble it at runtime?

@TBlueF TBlueF changed the title [Question/Feature] max_allowed_packet setting Improve sql-storage tile writing to allow the sql-driver to split network-packages Jun 3, 2025
@github-project-automation github-project-automation bot moved this to Planned (unordered) in TODO / Idea board Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Planned (unordered)
Development

No branches or pull requests

2 participants