{"id":724,"date":"2010-09-07T15:32:54","date_gmt":"2010-09-07T13:32:54","guid":{"rendered":"http:\/\/www.itidea.nl\/?p=724"},"modified":"2015-09-08T20:35:55","modified_gmt":"2015-09-08T18:35:55","slug":"permormance-issue-getitembyid","status":"publish","type":"post","link":"https:\/\/www.itidea.nl\/index.php\/permormance-issue-getitembyid\/","title":{"rendered":"Permormance issue GetItemById"},"content":{"rendered":"<p>Be careful with the use of GetItemById(), there are two options to use it:<br \/>\nSPList.Items.GetItemById()<br \/>\nSPList.GetItemById()<\/p>\n<p>The difference between the two is that the SPList.Items.GetItemById() loads every item into memory and then filters the set. Trust me: this can cause severe perfomance issues when using this on lists with a large number of items.<br \/>\nSPList.GetItemById() doesn&#8217;t do this and is way faster because of this. Be warned!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Be careful with the use of GetItemById(), there are two options to use it: SPList.Items.GetItemById() SPList.GetItemById() The difference between the two is that the SPList.Items.GetItemById() loads every item into memory and then filters the set. Trust me: this can cause &#8230; <a class=\"more-link\" href=\"https:\/\/www.itidea.nl\/index.php\/permormance-issue-getitembyid\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[20,13],"class_list":["post-724","post","type-post","status-publish","format-standard","hentry","category-sharepoint-2007","tag-c","tag-moss-2007"],"_links":{"self":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/comments?post=724"}],"version-history":[{"count":3,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/724\/revisions"}],"predecessor-version":[{"id":727,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/724\/revisions\/727"}],"wp:attachment":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/media?parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/categories?post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/tags?post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}