haswellr / CritterDB

A web application to help you find and create custom creatures and NPCs for the 5th edition of the world's greatest role playing game.
http://www.critterdb.com
53 stars 15 forks source link

Don't POST entire bestiary when updating sharing, metadata, etc #64

Open haswellr opened 4 years ago

haswellr commented 4 years ago

Today when any portion of a bestiary is updated, the front end POSTs the entire bestiary. For sub-objects, such as metadata, sharing, etc, we don't really need to do this. Correcting this will reduce payload sizes.

This came up as a user actually hit the 1Mb request size limit that Nginx enforces by default when trying to update the sharing on their bestiary. I increased the limit but this won't really scale.