Proper way to access latest row for each individual identifier?
问题 I have a table core_message in Postgres, with millions of rows that looks like this (simplified): ┌────────────────┬──────────────────────────┬─────────────────┬───────────┬──────────────────────────────────────────┐ │ Colonne │ Type │ Collationnement │ NULL-able │ Par défaut │ ├────────────────┼──────────────────────────┼─────────────────┼───────────┼──────────────────────────────────────────┤ │ id │ integer │ │ not null │ nextval('core_message_id_seq'::regclass) │ │ mmsi │ integer │ │ not