Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast period_start column on useview_feedback to have date time data type. #102

Open
1yuv opened this issue Aug 2, 2021 · 0 comments
Open

Comments

@1yuv
Copy link
Member

1yuv commented Aug 2, 2021

The following line:

Stores period_start as text by default, but it has to be date time field so that it will be used as expected.

But to avoid the hiccups like previous couch2pg run, we should ensure that for any supported cht version, doc->>{'meta','time'} can always be converted to valid date time.

Why we need this change?
We are now seeing that some partners have more than 10 million feedback docs. We'll want to filter those date by date time for analytical purpose and probably create index to optimize the query. But, with current view structure, it is not possible to do so.

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

No branches or pull requests

1 participant