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

'juju status' caches the list of space names. #11260

Closed
wants to merge 3 commits into from

Conversation

jameinel
Copy link
Member

@jameinel jameinel commented Feb 28, 2020

Checklist

  • Checked if it requires a pylibjuju change?
  • Added integration tests for the PR?
  • Added or updated doc.go related to packages changed?
  • Do comments answer the question of why design decisions were made?

Description of change

Rather than mapping from space-id to space-name for each interface, do
a single query load, and then pull the space names out of the map.

QA steps

On a controller with many machines (1000 in a model), do 'juju status'. It should return quickly. You can also use 'mongotop' to see that we are making a lot of reads against the spaces collection.

Documentation changes

None.

Bug reference

Rather than mapping from space-id to space-name for each interface, do
a single query load, and then pull the space names out of the map.
@howbazaar
Copy link
Contributor

Has been merged along with a test in #11262.

@howbazaar howbazaar closed this Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants