tag:blogger.com,1999:blog-1310592211703201999.post7897159399027856780..comments2023-03-22T00:24:44.986-07:00Comments on David Ebbo: How an OData quirk slowed down NuGet, and how we fixed itDavid Ebbohttp://www.blogger.com/profile/10231048261702011658noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-1310592211703201999.post-6165022669836123252013-05-02T07:01:30.306-07:002013-05-02T07:01:30.306-07:00Will do so right now, thanks!Will do so right now, thanks!Benhttps://www.blogger.com/profile/09531633221564435351noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-85701843299420089962013-05-02T06:47:31.814-07:002013-05-02T06:47:31.814-07:00@Ben: can you report that on the github project fo...@Ben: can you report that on the github project for the nuget package (link above), so David Fowler sees it? Though he probably hasn't tried this in newer OData.David Ebbohttps://www.blogger.com/profile/10231048261702011658noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-49208662508230936342013-05-02T06:31:55.683-07:002013-05-02T06:31:55.683-07:00Thanks for this article David, I've just tried...Thanks for this article David, I've just tried using your NuGet package against a version of OData (5.4) and it appears that the ExpressionVisitor is no longer supported as we now get a 'must be reducible node' ArgumentException when attempting to visit the original expression. Have you tried against the latest OData? I'm not sure if this is a bug in the MS stuff or just me not understanding it properly.Benhttps://www.blogger.com/profile/09531633221564435351noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-57003952278699213462011-12-01T13:25:31.723-08:002011-12-01T13:25:31.723-08:00Its still slow for me :(Its still slow for me :(Ignacio Fuenteshttps://www.blogger.com/profile/00513822549853010608noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-23821898592323794872011-08-11T11:23:48.837-07:002011-08-11T11:23:48.837-07:00Great fix David. I always wondered why it was sear...Great fix David. I always wondered why it was searching was slooooooooow.Tim Murphyhttps://www.blogger.com/profile/08225761900310538326noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-29160348517241778162011-08-10T09:43:57.717-07:002011-08-10T09:43:57.717-07:00To follow up on @Phani's suggestion to use IDa...To follow up on @Phani's suggestion to use IDataServiceQueryProvider.IsNullPropagationRequired, we have established with the OData team that it is in fact not a good solution here, as it requires writing a full WCF Data Services custom provider, which is a very complex deal.David Ebbohttps://www.blogger.com/profile/10231048261702011658noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-91227583480507870942011-08-09T09:41:04.360-07:002011-08-09T09:41:04.360-07:00@Phani: the OData guys suggested that rewriting th...@Phani: the OData guys suggested that rewriting the LINQ expression was the simplest fix, but I'll check with them.David Ebbohttps://www.blogger.com/profile/10231048261702011658noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-25856188895850778212011-08-09T09:04:34.714-07:002011-08-09T09:04:34.714-07:00Hi David,
To remove the null propagation checks in...Hi David,<br />To remove the null propagation checks in the expressions generated by the WCF Data Services server runtime for a reflection provider, you can implement the IDataServiceQueryProvider interface and set IsNullPropagationRequired to false.<br />This boolean flag is responsible for turning off the null propagation checks we inject for non-EF query providers. It is a lot easier than writing a linq visitor to do the murky work of rewriting linq expressions. <br /><br />Phani<br />http://msdn.microsoft.com/en-us/library/system.data.services.providers.idataservicequeryprovider.aspxPhani Rajhttps://www.blogger.com/profile/00616190998367954479noreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-69972980532420177042011-08-09T06:31:32.610-07:002011-08-09T06:31:32.610-07:00Wow ... this is an awesome stuff...thanks for shar...Wow ... this is an awesome stuff...thanks for sharing this out :)<br /><br />LoHiTh<br />http;//about.me/kashyapaAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1310592211703201999.post-27603689124336166302011-08-09T01:38:45.023-07:002011-08-09T01:38:45.023-07:00Good info David.Good info David.Anonymoushttps://www.blogger.com/profile/07074118510041869171noreply@blogger.com