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
this is going to have to be repeated in a few places. DynamoDB also can't have an index on this kind of computed property, so we'll want to sort after fetching the list from DynamoDB (which will let us unify sorting between local and prod). We'll also need to expose the time a question was asked in the non-key fields in the top index that we query from so that we get it back from the query to top:
A reasonable place to start is probably https://www.evanmiller.org/ranking-news-items-with-upvotes.html
Since we currently do sorting in the client
wewerewondering/client/src/List.svelte
Lines 191 to 193 in 9c7ca7b
and on the server (for local operation)
wewerewondering/server/src/list.rs
Lines 69 to 77 in 9c7ca7b
and in DynamoDB (for prod operation)
wewerewondering/server/src/list.rs
Line 33 in 9c7ca7b
this is going to have to be repeated in a few places. DynamoDB also can't have an index on this kind of computed property, so we'll want to sort after fetching the list from DynamoDB (which will let us unify sorting between local and prod). We'll also need to expose the time a question was asked in the non-key fields in the
top
index that we query from so that we get it back from the query totop
:wewerewondering/infra/dynamodb.tf
Line 47 in 9c7ca7b
The text was updated successfully, but these errors were encountered: