Open JustZack opened 2 months ago
Consider also for each member:
Cache their first/last terms ^so a range of activity can be easily construed
Cache their primary state Cache their primary party Cache their primary type ^ these three based on time in office for each
Cache as much as possible to reduce overhead of queries
Mainly around when members are cached - but applies to all data which remains unchanged until next cache update
And to provide the UI with these functions for filtering
I.E.: Record the count of each distinct party in
MemberTerms
Record the count of each distinct type inMemberTerms
Record the count of each distinct state inMemberTerms
isCurrent
here aswell Record the count of each distinct state inMemberTerms