Skip to content

Update feed created_at to include release_date#692

Open
dylanjeffers wants to merge 1 commit intomainfrom
update-feed-date-select
Open

Update feed created_at to include release_date#692
dylanjeffers wants to merge 1 commit intomainfrom
update-feed-date-select

Conversation

@dylanjeffers
Copy link
Contributor

No description provided.

'track' as entity_type,
track_id as entity_id,
created_at
GREATEST(tracks.created_at, COALESCE(tracks.release_date, tracks.created_at)) as created_at
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will break our cache on the client because we will have different values for created_at across the same track

AND created_at < @before
AND created_at >= @before::timestamp - INTERVAL '1 YEAR'
AND GREATEST(tracks.created_at, COALESCE(tracks.release_date, tracks.created_at)) < @before
AND GREATEST(tracks.created_at, COALESCE(tracks.release_date, tracks.created_at)) >= @before::timestamp - INTERVAL '1 YEAR'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

concerned abt query performance, can you play with the query planning for an account like mine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants