How to have only one copy of the sharepoint list items #1449
Unanswered
mvcsharepointdev
asked this question in
Q&A
Replies: 1 comment
-
@mvcsharepointdev : just use `workordersparepartdetailsList.Items.Clear()'. See https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#using-paging-with-listdataasstream for how that's used to memory efficient do paging. |
Beta Was this translation helpful? Give feedback.
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.
-
I have this code inside my .net core console application:-
Now first i am getting all the data using paging inside
workordersparepartdetailsList
list , then i am doing a group by and build another list namedWOSPDByAssetSP
.. so i think at the end i will have 2 copies of the list items; one inside theworkordersparepartdetailsList
list and the other insideWOSPDByAssetSP
list.. so how i can clear theworkordersparepartdetailsList
list once i build theWOSPDByAssetSP
list, so i can better utilize the memory ussage? as seems i can not do something as followworkordersparepartdetailsList.Clear()
? any advice please?Thanks
Beta Was this translation helpful? Give feedback.
All reactions