-
Notifications
You must be signed in to change notification settings - Fork 215
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
New Mob DB SQL Tables #337
Comments
As suggestion: |
We had planned on dropping SQL with the mob and item conversions to YAML but there was a huge backlash of those who adamantly use SQL. I originally had pushed to SQL-fy every database years ago but not many seemed interested. Somehow we are stuck in this gap of wanting both, not neither. |
My issue with this is an admin would still have to duplicate the server configuration in flux Lines 66 to 105 in dc8ebf2
Whereas if the mapserver generates it, it creates one table with all the info after any configuration and script changes.
Unfortunately YAML isn't great for querying. We'd either have to load the yaml files on every request that requires it (yikes), or keep it in a memory cache. Or, just query a sql db like we do now. |
Provide Details
I want to refactor our mob_db (and eventually item_db) to make it easier to query and get real values.
this is related to rathena/rathena#6369
Instead of using yml2sql, the map-server-generator would generate 2 sql files with schemas like so:
NB:
These will already have rates applied to them, as the map-server-generator generates these after it reads the configs and all imports.
We won't have to keep two similar tables updated anymore (mob_db, mob_db2) to drops.
Searching for mobs that have a specific item drop will be easier, as instead of checking drop1_item, drop2_item, drop3_item, etc, we can just search through
mob_drop_db
for item_id, then find all mobs.Extending the fields for mob_drops would also be much easier than redoing them 13 times (10 normal drops, 3 mvp drops). We can also add more than the normal amount of drops for a monster.
The text was updated successfully, but these errors were encountered: