Open ezekg opened 2 years ago
Doing so would allow us to keep the logs around longer i.e. perhaps indefinitely. We should nil some fields on request logs, like request and response body, since those are likely no longer needed after 30 days. Also nil IP address.
See: https://www.johnnunemaker.com/rails-postgres-native-partitioning/
What if we did this instead of #566? We could do load_async across the partitioned tables for e.g. counting request logs.
load_async
Refs:
Doing so would allow us to keep the logs around longer i.e. perhaps indefinitely. We should nil some fields on request logs, like request and response body, since those are likely no longer needed after 30 days. Also nil IP address.
See: https://www.johnnunemaker.com/rails-postgres-native-partitioning/