<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Efficient way to add a new item to a SharePoint list</title>
	<atom:link href="http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/</link>
	<description>Software and Technology Tid-bits</description>
	<lastBuildDate>Fri, 05 Mar 2010 06:11:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rob Garrett</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-907</link>
		<dc:creator>Rob Garrett</dc:creator>
		<pubDate>Wed, 04 Nov 2009 19:27:27 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-907</guid>
		<description>SPQuery q = new SPQuery();
Query = EmptyQuery;

Object inline initialization is part of .NET 3.0 and Visual Studio 2008.</description>
		<content:encoded><![CDATA[<p>SPQuery q = new SPQuery();<br />
Query = EmptyQuery;</p>
<p>Object inline initialization is part of .NET 3.0 and Visual Studio 2008.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Ackerbuch</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-905</link>
		<dc:creator>Joseph Ackerbuch</dc:creator>
		<pubDate>Wed, 04 Nov 2009 14:56:09 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-905</guid>
		<description>The syntax of
SPQuery q = new SPQuery {Query = EmptyQuery};
does not work in Visual Studio 2005 and .NET2.0
How is the correct syntax for those VS2005?
Thanks.</description>
		<content:encoded><![CDATA[<p>The syntax of<br />
SPQuery q = new SPQuery {Query = EmptyQuery};<br />
does not work in Visual Studio 2005 and .NET2.0<br />
How is the correct syntax for those VS2005?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: #30 Sharepoint: Accessing a Site Collection within a Workflow and updating a list &#171; Integration Points</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-862</link>
		<dc:creator>#30 Sharepoint: Accessing a Site Collection within a Workflow and updating a list &#171; Integration Points</dc:creator>
		<pubDate>Mon, 20 Jul 2009 21:41:34 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-862</guid>
		<description>[...] Credit due for OptimizedAddItem(): http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Credit due for OptimizedAddItem(): <a href="http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/" rel="nofollow">http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-861</link>
		<dc:creator>Denis</dc:creator>
		<pubDate>Wed, 17 Jun 2009 17:28:21 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-861</guid>
		<description>Some comments on MSDN&#039;s SharePoint Best Practices page were complaining that the SPListItem.AddItem() method was missing.

http://msdn.microsoft.com/en-us/library/bb687949.aspx 

I let them in on your helpful code here (re-cast as an extension method). Thanks for making it available.

Cheers!</description>
		<content:encoded><![CDATA[<p>Some comments on MSDN&#8217;s SharePoint Best Practices page were complaining that the SPListItem.AddItem() method was missing.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/bb687949.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb687949.aspx</a> </p>
<p>I let them in on your helpful code here (re-cast as an extension method). Thanks for making it available.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SharePoint Document Library and List &#8211; File Upload &#171; Karthikeyan K&#8217;s Blog</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-838</link>
		<dc:creator>SharePoint Document Library and List &#8211; File Upload &#171; Karthikeyan K&#8217;s Blog</dc:creator>
		<pubDate>Wed, 27 May 2009 14:54:14 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-838</guid>
		<description>[...] can look for more info about adding list item efficiently in this article by Rob [...]</description>
		<content:encoded><![CDATA[<p>[...] can look for more info about adding list item efficiently in this article by Rob [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Burns</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-832</link>
		<dc:creator>Andy Burns</dc:creator>
		<pubDate>Tue, 03 Mar 2009 17:43:54 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-832</guid>
		<description>Ah! So that&#039;s why they have them! Always did wonder why the separate ItemCount - always figured it was just a shortcut...   ...but it makes sense now!

Methinks I&#039;ll have to go tell the rest of the team...</description>
		<content:encoded><![CDATA[<p>Ah! So that&#8217;s why they have them! Always did wonder why the separate ItemCount &#8211; always figured it was just a shortcut&#8230;   &#8230;but it makes sense now!</p>
<p>Methinks I&#8217;ll have to go tell the rest of the team&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-831</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Tue, 03 Mar 2009 17:40:35 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-831</guid>
		<description>Hi Rob,

SPList.Items.Add will fire events but in that case hopefully all the necessary column fields will be populated (e.g. Title), so any alert or workflow that get created will have all the information they need.

The only reason I bring it up is because in my experience, with such an approach email alerts will still be sent out without any information (other than the List Item ID). So it is something to be aware of.

~

P.S. - Nice blog. It is very well organized and has extremely useful content.</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>SPList.Items.Add will fire events but in that case hopefully all the necessary column fields will be populated (e.g. Title), so any alert or workflow that get created will have all the information they need.</p>
<p>The only reason I bring it up is because in my experience, with such an approach email alerts will still be sent out without any information (other than the List Item ID). So it is something to be aware of.</p>
<p>~</p>
<p>P.S. &#8211; Nice blog. It is very well organized and has extremely useful content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robgarrett</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-830</link>
		<dc:creator>robgarrett</dc:creator>
		<pubDate>Tue, 03 Mar 2009 14:03:22 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-830</guid>
		<description>Saurabh,

Quote me if I&#039;m incorrect, but won&#039;t SPList.Items.Add also fire events?

R.</description>
		<content:encoded><![CDATA[<p>Saurabh,</p>
<p>Quote me if I&#8217;m incorrect, but won&#8217;t SPList.Items.Add also fire events?</p>
<p>R.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robgarrett</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-829</link>
		<dc:creator>robgarrett</dc:creator>
		<pubDate>Tue, 03 Mar 2009 14:02:22 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-829</guid>
		<description>Andy,

I don&#039;t have metrics to hand, but I did perform a study when I worked with a client, and the optimized version made significant difference in situations where we added lots of list items to lists.

The bigger culprits are SPList.Items.Count, which I see all the time (especially in list iterators), which can be replaced with SPList.ItemCount.

R.</description>
		<content:encoded><![CDATA[<p>Andy,</p>
<p>I don&#8217;t have metrics to hand, but I did perform a study when I worked with a client, and the optimized version made significant difference in situations where we added lots of list items to lists.</p>
<p>The bigger culprits are SPList.Items.Count, which I see all the time (especially in list iterators), which can be replaced with SPList.ItemCount.</p>
<p>R.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://</title>
		<link>http://blog.robgarrett.com/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list/#comment-828</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Mon, 02 Mar 2009 14:08:20 +0000</pubDate>
		<guid isPermaLink="false">/cs/blogs/software/archive/2009/02/25/efficient-way-to-add-a-new-item-to-a-sharepoint-list.aspx#comment-828</guid>
		<description>The only problem that I see with your approach is that this will fire any alerts, list handlers and workflows (that are programmed to fire automatically on create new or update list item  events).

I guess any developers planning on using the above approach should handle the issues that may result.</description>
		<content:encoded><![CDATA[<p>The only problem that I see with your approach is that this will fire any alerts, list handlers and workflows (that are programmed to fire automatically on create new or update list item  events).</p>
<p>I guess any developers planning on using the above approach should handle the issues that may result.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
