Skip to content

Fastest/best performing way to load all files? #586

Answered by jansenbe
LegendaryB asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @LegendaryB ,

I've just made a change to PnP Core SDK that enables below approach to work. There's one request to find all applicable lists, one request per list per 500 items to find the downloadable items and then one request per actual file to download. Next to the option to download the file you also have the metadata of the list item to work with.

You'll have to wait until tomorrow for the next nightly build to make below code work.

// grab all document libraries that are not hidden
var lists = await context.Web.Lists.QueryProperties(p => p.Fields.QueryProperties(p => p.InternalName,
                                                    p => p.FieldTypeKind,

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by LegendaryB
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@LegendaryB
Comment options

@jansenbe
Comment options

@LegendaryB
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants