I have an app that semi-recently converted to being database driven, this C++ app is an asset editor that knows about all of our assets and lets you edit any of them.
In some situations a user will open the app, they will claim lets say 200 assets to edit and edit them, but when they save them we go through each asset and call save on them individually. Although this is holding up ok now each asset saving individually seems to be a lot of queries that end up happening, one for asset data, one for asset metadata some assets have additional data in other table ending up with lets say 400-800 update queries for these 200 assets. This doesnt seem to be increadibly efficient in general and doesn't scale well. I am looking for ways people approach this problem and optimize the number of queries run, suggestions?
200 is a lot for some of our users, and small for others, some of them may commonly work on a set of 500-2000 assets.
In some situations a user will open the app, they will claim lets say 200 assets to edit and edit them, but when they save them we go through each asset and call save on them individually. Although this is holding up ok now each asset saving individually seems to be a lot of queries that end up happening, one for asset data, one for asset metadata some assets have additional data in other table ending up with lets say 400-800 update queries for these 200 assets. This doesnt seem to be increadibly efficient in general and doesn't scale well. I am looking for ways people approach this problem and optimize the number of queries run, suggestions?
200 is a lot for some of our users, and small for others, some of them may commonly work on a set of 500-2000 assets.