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

Change Propfind directory directive programming #123

Open
Java-class opened this issue Nov 2, 2019 · 1 comment
Open

Change Propfind directory directive programming #123

Java-class opened this issue Nov 2, 2019 · 1 comment
Assignees

Comments

@Java-class
Copy link

in Propfind method, when we need to pars XML tree propfind method act recursive and in some reason for performance issue I need to Directory pars all the tree, not recursive,

@bradmac
Copy link
Contributor

bradmac commented Nov 3, 2019

Milton's API is very resource oriented, it might be tricky to adjust it to allow for non-recursive deep directory listing. Also, I'm not aware of any situation where actual Dav clients do a deep directory listing .. that would be unworkably slow in most situations.

If you need to optimise for this what i suggest is

  • create a custom filter which will pre-fetch data.
  • this will need to inspect the request to determine the method and URL, and fetch the data into a request attribute (or other cache holder)
  • your CollectionResource.child method can then be optimised to use the pre-fetched data if available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants