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

sparrow create-user command is extremely slow #332

Open
davenquinn opened this issue Apr 19, 2023 · 2 comments
Open

sparrow create-user command is extremely slow #332

davenquinn opened this issue Apr 19, 2023 · 2 comments

Comments

@davenquinn
Copy link
Collaborator

We are having a hard time running the sparrow create-user command because it seems that a lot of code is being loaded on each app run. This may have something to do with database migrations.

@davenquinn
Copy link
Collaborator Author

image

The logging here makes clear we are just accomplishing a fair number of tasks (cluster version checking, etc.) before we start running the command in the container. Maybe we should have a whitelist of commands that we run right off the bat without configuring the entire environment? And/or we could have some sort of cache of instance information (this is needed anyway to pass configuration details to the frontend admin).

@davenquinn
Copy link
Collaborator Author

We can also shift to the architectural model we are beginning to adopt for Macrostrat, where the assumption is that management scripts will mostly be run as non-containerized processes.

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