Open jbailey2010 opened 5 years ago
Updated view count to be a pipeline to send view counts with ttl.
Still need: Read in compare to see results Send data on comparisons Read to view comparisons
Made new operation for comparisons to send in data. Updated keys to include time.
Still need: New index on table to fetch by type
Read view counts for compare (where? Will need pagination) Sort option to see
Read compare counts for trending in comparator How to display? Tabs between views? Setting and atomically one or the other?
It'd be terrible practice to just load everything. At scale, that's hundreds of pagination calls. Instead, I'm setting up a DDB stream to a Lambda, which'll write to a second table. This'll have the aggregated numbers.
On create, increment the player/type count. On delete, decrement. All reads will be from that table.
Note - ttl on these items doesn't seem to work as is.
TTL fixed, was in millis instead of s
Row by row on views and comparisons? Can then do a sort or pane on comparator? Put a ttl in DDB so it can handle trending, too.