<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Rather large issue with cache retrieval</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Rather large issue with cache retrieval</description>
  <pubDate>Sat, 11 Apr 2026 23:13:50 -700</pubDate>
  <lastBuildDate>Mon, 19 Jul 2010 21:34:33 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1967</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Rather large issue with cache retrieval : Point made. Thanks for keeping...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7689#7689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1967<br /><strong>Posted:</strong> 19-Jul-2010 at 9:34pm<br /><br /><P>Point made.&nbsp; Thanks for keeping us on our toes!</P><DIV>This has been&nbsp;fixed for the upcoming release.&nbsp; I didn't mean to downplay the significance of the issue.</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by ting - 26-Aug-2010 at 5:16pm</span>]]>
   </description>
   <pubDate>Mon, 19 Jul 2010 21:34:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7689#7689</guid>
  </item> 
  <item>
   <title>Rather large issue with cache retrieval : Unless I&amp;#039;m missing the point...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7672#7672</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1967<br /><strong>Posted:</strong> 17-Jul-2010 at 6:54pm<br /><br />Unless I'm missing the point here, this seems to be a quite serious bug/error/feature, certainly with regard to SQL queries.<br>The idea that turning on caching would return inconsistent results is a worry, primarily because every developer expects a cache to be transparent. In this situation there is no way to test for this issue in advance unless your testers know they have to include trailing spaces, experiment with case, and presumably experiment with extended characters?<br>Switching between online and offline modes also becomes extremely risky, and I know that we will have to turn off all the client-side caching until we can find a workaround; and insisting that every call to the database is wrapped in trim and touppercase certainly doesn't sound an acceptable option, particularly given that presumably these will pass through to SQL on the first call as UPPER(TRIM(fieldname)), probably removing index functionality.<br><br>Re property interceptors, what if (as in our case and probably many others) the entity is not written to the database by our application?<br><br>I would argue that a cache should be 100% transparent to the underlying dataset, and that this is a critical issue to be addressed.<br><br>One thing I do wonder (but have not tested) is what happens with other datasources in EF? Is the case-sensitivity and whitespace ignoring common to all EF datasources, SQL only, or MS-SQL only? If so, can you ask EF whether a datasource is ignoring case/trailing whitespace?<br>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 18:54:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7672#7672</guid>
  </item> 
  <item>
   <title>Rather large issue with cache retrieval : We don&amp;#039;t currently have a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7667#7667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1967<br /><strong>Posted:</strong> 16-Jul-2010 at 6:20pm<br /><br /><P>We don't currently have a setting that allows you to configure string comparisons against the DevForce cache, although this is something we are looking into.&nbsp; You can use ToUpper() and Trim() in the query which will enable you to specify case insensitivity and to ignore whitespace.&nbsp; For the whitespace, you can also use property interceptors to trim on the get and/or set.</P><DIV>Edit:&nbsp;We will be addressing this issue, but here is a better way to perform a case insensitive string comparison:</DIV><DIV>entityManager.Employees.Where(emp =&gt; emp.FirstName.Equals("Kathy", StringComparison.CurrentCultureIgnoreCase);</DIV><span style="font-size:10px"><br /><br />Edited by ting - 19-Jul-2010 at 9:24pm</span>]]>
   </description>
   <pubDate>Fri, 16 Jul 2010 18:20:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7667#7667</guid>
  </item> 
  <item>
   <title>Rather large issue with cache retrieval : We&amp;#039;ve just been chasing the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7638#7638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1967<br /><strong>Posted:</strong> 15-Jul-2010 at 1:12am<br /><br />We've just been chasing the worlds simplest query against a table of users with four fields; userid, firstname, lastname, mobile. The view is marked as having it's key on userid (which is unique).<br>We have a query that selects all the users where firstname = 'David'.<br>There are two records in the database meeting this criteria, yet DF only returns one, no matter whether there is an order or not (so it's not just the first record, it's the only record), yet both records are indeed in the context's cache.<br>In addition, the query seems to be case sensitive, so 'david' fails but 'David' succeeds.<br>Tracing the server shows that the two records are returned, and specifying no filter returns all 27 users.<br>However, setting the context's default to QueryStrategyDatasourceOnly resolves all the problems and the system behaves as expected, two records returned, no case sensitivity.<br>This is running in an MVC2 app, not Silverlight.<br><br>A last second check of our database (just before posting this) showed:<br>&#091;David &#093;<br>&#091;David&#093;<br><br>So it appears we have a spare space, but the crucial thing is that SQL allows for this in a WHERE, but the cache doesn't.<br>For now we've disabled the cache, but having the cache give back different data to the database is a significant issue. Any ideas? Is there an option to make the cache string comparisons SQL compatible?<br>]]>
   </description>
   <pubDate>Thu, 15 Jul 2010 01:12:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1967&amp;PID=7638#7638</guid>
  </item> 
 </channel>
</rss>