Is your feature request related to a problem? Please describe.
Currently BaGet loads the package model to update its download count. This approach has a few flaws:
The model load is unnecessary since all we're doing is an integer increment. This hurts performance
This is susceptible to concurrency issues. The update will fail if someone modifies the package model after we've loaded it but before we've saved our changes
Is your feature request related to a problem? Please describe.
Currently BaGet loads the package model to update its download count. This approach has a few flaws:
Describe the solution you'd like
When we update to EF7, use bulk updates: https://github.com/dotnet/efcore/issues/795
This lets us express a query like