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

Rockset data source improvements #4076

Closed
wants to merge 2 commits into from

Conversation

ari-e
Copy link
Contributor

@ari-e ari-e commented Aug 16, 2019

What type of PR is this? (check all applicable)

  • Feature
  • Bug Fix

Description

This updates the Rockset data source in 2 important ways

  1. Bug fix– The list of tables and schemas is now loaded for all workspaces whereas previously only commons workspace was loaded and others were ignored
  2. Feature– The DESCRIBE for all the tables is now run in parallel instead of sequentially for much faster load times of the schema

Related Tickets & Documents

N/A

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

N/A

@ari-e
Copy link
Contributor Author

ari-e commented Aug 26, 2019

@arikfr we'd appreciate it if someone can please take a look at this! :)

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

Thanks, @ari-e ! See comment.

columns = list(set(map(lambda x: x['field'][0], describe['results'])))
schema[table_name] = {'name': table_name, 'columns': columns}
return schema.values()
pool = ThreadPool(processes=10)
Copy link
Member

Choose a reason for hiding this comment

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

In some configurations (and this is going to become the default) we run Redash's API server with gevent's monkeypatching. I'm not sure how "healthy" it is to mix threads with gevent.

How about we land this PR without the threads optimization and then revisit this in a follow up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @arikfr, thanks for the feedback. Given that future direction, would it make sense to replace this multithreaded approach with grequests? I was originally leaning in that direction actually but figured this would be a less invasive change.

Copy link
Member

Choose a reason for hiding this comment

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

At the moment the default deployment doesn't use gevent and we don't have a timeline for the switch. So for now I suggest we don't use anything that depends on it.

@ari-e
Copy link
Contributor Author

ari-e commented Sep 23, 2019

@arikfr thoughts on ^?

@ari-e
Copy link
Contributor Author

ari-e commented Oct 29, 2019

@arikfr would appreciate some direction here, thanks.

@ari-e
Copy link
Contributor Author

ari-e commented Jan 13, 2020

Abandoning in favor of a simpler PR coming later today

@ari-e ari-e closed this Jan 13, 2020
@ari-e ari-e deleted the rockset-improvements branch January 13, 2020 23:19
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