Repository navigation
Limit number of versions returned when loading list items with versions #1689
Unanswered
nozzrangar
asked this question in
Q&A
Replies: 1 comment
|
Sorry for the late reply. So first get just the list items without the versions and then load only the first 5 versions via a separate LINQ query |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello community.
I'm trying to figure something out and hoping that someone could help me get to an answer.
I'm getting a list item and loading the list item versions like this:
This has been working pretty well but now I came across few list items that have tens of thousands of versions, the highest I've seen is almost 80.000 versions. When this code runs to get these items and load all the versions it takes 30-60 seconds and consumes a lot of memory, obviously.
So my question is, is there any way to limit the number of versions that are loaded in to memory?
I've tried to add
.Taketo versions but that returns no versionsAll reactions