Limit provider history to 100 results

This stops the pages being slow to load and defers the need to add
any pagination. Only the most recent data is likely to be relevant.
This commit is contained in:
Ben Thorner
2022-04-06 11:53:01 +01:00
parent a513e534f7
commit 13b01579c8

View File

@@ -36,6 +36,8 @@ def dao_get_provider_versions(provider_id):
id=provider_id
).order_by(
desc(ProviderDetailsHistory.version)
).limit(
100 # limit results instead of adding pagination
).all()