You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In its original implementation, the search view performed a count of the entire benefits table every time a search was issued. This was a real drag on performance. The total number of benefit records is now hard-coded into the search view to eliminate the duplicate query.
In its original implementation, the search view performed a count of the entire benefits table every time a search was issued. This was a real drag on performance. The total number of benefit records is now hard-coded into the search view to eliminate the duplicate query.
bga-pensions/pensions/views.py
Lines 428 to 429 in ed99d1c
We should be smarter about this. Perform and cache the count when data is imported, and retrieve the cached value in the view.
The text was updated successfully, but these errors were encountered: