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

changing dynamodb table names on the fly. #146

Closed
fippo opened this issue Jul 5, 2016 · 3 comments
Closed

changing dynamodb table names on the fly. #146

fippo opened this issue Jul 5, 2016 · 3 comments

Comments

@fippo
Copy link
Owner

fippo commented Jul 5, 2016

the size of our dynamodb table makes exports to redshift very hard. Also, we re-export the whole DB every time.

What we should do instead is to generate the tablename based on the current data. That assumes that the tables are created in advance but that is doable.

Tables can also be archived to S3 when they are no longer needed for read access.

WDYT @ggarber?

@fippo
Copy link
Owner Author

fippo commented Jul 6, 2016

@dagingaa how would that work with your ES export? I'm thinking of two tables alternating regularly. Can you do streams from both tables and put them into the same thing?

@dagingaa
Copy link

dagingaa commented Jul 7, 2016

Should work as long as the data stays the same and is only written once. We just have to set up two lambda listeners on the stream events for each one, and it will pipe it in as if it were one.

@fippo
Copy link
Owner Author

fippo commented Jul 19, 2016

I'll do a manual switch for now by changing the table names in the config.

@fippo fippo closed this as completed Sep 9, 2016
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

2 participants