Skip to content

How to lazy load menu? #4110

Answered by akhenry
BerQin asked this question in Community Q&A
Discussion options

You must be logged in to vote

@BerQin The object tree is lazy-loaded, so as @jvigliotta mentioned it's probably the search indexer that you're seeing.

Object providers can optionally define a search(searchTerms) function if server-side search is supported. For eg our Couch DB provider implements this. In the event that an object provider does not define a search function, Open MCT will build an in-memory index of all of the objects provided by that object provider via an exhaustive tree traversal, hence all of the gets.

So, there are a couple of potential mitigations here:

  1. If your server has an API for searching objects by name, you could add a search(searchTerms) function to your object provider, and Open MCT will s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jvigliotta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants