<?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 : Application Design Question Lage Data Items</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Application Design Question Lage Data Items</description>
  <pubDate>Thu, 21 May 2026 20:24:29 -700</pubDate>
  <lastBuildDate>Tue, 09 Mar 2010 04:03:49 -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=1666</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>Application Design Question Lage Data Items : Great Thanks I&amp;#039;ll have a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6336#6336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 09-Mar-2010 at 4:03am<br /><br />Great Thanks I'll have a look at it.<DIV>&nbsp;</DIV><DIV>Dave</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 09 Mar 2010 04:03:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6336#6336</guid>
  </item> 
  <item>
   <title>Application Design Question Lage Data Items :  I&amp;#039;m not familiar with the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6332#6332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 08-Mar-2010 at 3:27pm<br /><br />I'm not familiar with the Sync Framework, but assuming it does what itsounds like it does, that seems like it would work, yes. Naturally yourmethods that try to sync should first make sure the remote DB can bereached.<br><br>You might want to have a look at some of the materials on the DataSourceKeyResolver in the Learning Resources (see screen shot below of search results). The resolver gives you a convenient way to switch instances of a database at runtime<br><br><img src="uploads/21/DataSourceKeyResolver.GIF" height="610" width="1267" border="0" /><br><br>]]>
   </description>
   <pubDate>Mon, 08 Mar 2010 15:27:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6332#6332</guid>
  </item> 
  <item>
   <title>Application Design Question Lage Data Items : I have an idea. I will use Microsoft...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6321#6321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 08-Mar-2010 at 8:17am<br /><br /><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><B style="mso-bidi-font-weight: normal"><SPAN style="LINE-HEIGHT: 115%; COLOR: black; FONT-SIZE: 10pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1"><FONT face=Calibri>I have an idea. I will use <SPAN style="mso-bidi-font-weight: bold">Microsoft Sync Framework 2.0 to keep the DB in sync I will then use DevForce Locally.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></SPAN></B></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><B><SPAN style="LINE-HEIGHT: 115%; COLOR: black; FONT-SIZE: 10pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1"><FONT face=Calibri>So the workflow will be on application start and sync up the Local DB from the Remote DB.<o:p></o:p></FONT></SPAN></B></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><B><SPAN style="LINE-HEIGHT: 115%; COLOR: black; FONT-SIZE: 10pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1"><FONT face=Calibri>Then the application will use the local DB while in use. On Exit I’ll syn up the Data to the remote DB.<o:p></o:p></FONT></SPAN></B></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><B><SPAN style="LINE-HEIGHT: 115%; COLOR: black; FONT-SIZE: 10pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1"><FONT face=Calibri>I could then have an application option that would enable local DB or not, for the users that will not need disconnected access. <o:p></o:p></FONT></SPAN></B></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><B><SPAN style="LINE-HEIGHT: 115%; COLOR: black; FONT-SIZE: 10pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1"><FONT face=Calibri>Should work yes?<o:p></o:p></FONT></SPAN></B></P>]]>
   </description>
   <pubDate>Mon, 08 Mar 2010 08:17:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6321#6321</guid>
  </item> 
  <item>
   <title>Application Design Question Lage Data Items : Greg,  Thanks for taking the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6320#6320</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 08-Mar-2010 at 5:22am<br /><br /><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>Greg,</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Thanks for taking the time to answer. </FONT></FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">&gt;&gt;<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Given your relatively complex algorithm for retrieval of a particular image for immediate use (first look in cache; then in the local db; then in the remote…<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">&gt;&gt;<o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Well this is what I thought I would want to do, maybe not. What if while connected I look for the image from the remote DB, as a matter of fact while connected I will use the Framework EntityManger “normally” <o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">So now disconnected, I have a field rep that will be going to a customer site, the site may not grant / have internet access (to the remote DB) so before he leaves he will perform an operation that will hydrate all the related “customer” specific information related to the project. No big deal I can use the cache file for this perfect. The only caveat is if the tek needs to lookup a part from a catalog, this catalog is huge both general data as well as pictures, and the kicker is that the tek needs the ability to add a new entry including a picture as well, this new entry will need to be pushed back to the remote DB and all the other tech need to syc up when it is available.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">So maybe the catalog DB piece is different DB than the main app. That way I can use a separate EntityCache and EntityStateFile for the piece. The workflow for this piece would be: when connected use the remote DB, when disconnected using a separate EntityManager look in the local DB and use the EntityManager as designed and save the CacheFile on exit. Then when connected I could restore the cache file then save data to the remote DB. <o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Will this work?<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>I think I will.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Is this the same solution that is in the doc? Maybe so. Just took me awhile to get there.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Thanks<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'">Dave<o:p></o:p></SPAN></P>]]>
   </description>
   <pubDate>Mon, 08 Mar 2010 05:22:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6320#6320</guid>
  </item> 
  <item>
   <title>Application Design Question Lage Data Items : Well, there are many possibilities...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6305#6305</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 05-Mar-2010 at 12:23pm<br /><br /><DIV>Well, there are many possibilities for how you write the logic to retrieve the images from the remote DB; but you seem to be leaning toward a bulk operation where you just get them all at once, or maybe just install them with the app. You may need some facility for updating the local store when images are added, changed, or deleted on the remote db.</DIV><DIV>&nbsp;</DIV><DIV>But let's say that's all outboard of the normal operation of your app, so that you're only job is to get a particular image when needed for display. Given your relatively complex algorithm for retrieval of a particular image for immediate use (first look in cache; then in the local db; then in the remote), it will probably be better if your Employee and EmployeeImage tables aren't joined in a relationship, so that the Employee entity has no EmployeeImage property on it. That's because DevForce's normal behavior is to look for a navigation property entity (EmployeeImage) first in the cache, and then in the remote Db if its best information says it isn't already in the cache.&nbsp; There's no easy way of fudging this to insert a look at a local db into the middle.</DIV><DIV>&nbsp;</DIV><DIV>But let's say you wire some logic to a button, or to the event of navigating to a new Employee on a form. The handler for that event can do a cache-only search for the image of Employee 123456; if that returns the null entity it can attempt to retrieve it from the local db; if that produces nothing then it can do a datasource-only retrieval.&nbsp; And of course, if the latter is required, you could put some logic right there to save it to the local db at the same time.</DIV><DIV>&nbsp;</DIV><DIV>Once you've viewed a given image during a given application session, it will, of course, always be found in the cache. If there's a ever problem with so many images getting loaded that the cache gets too large, you can always remove images from the cache.</DIV><DIV>&nbsp;</DIV><DIV>I suppose another way to go might be to go ahead and relate the Employee and EmployeeImage tables, then introduce a DataConverter into any databindings that kicks into action if the EmployeeImage property returns the null entity. You'd want to prototype that, of course,&nbsp;to see if any issues arise.</DIV><DIV>&nbsp;</DIV><DIV>&gt;&gt;</DIV><DIV><FONT size=3 face=Calibri>&nbsp;If I use the Local_EntityManager the stuff will be saved to LocalDB great but how would I get that data back to the remote DB when I come back online. I’m trying to avoid using Merge Replication</FONT></DIV><DIV><FONT size=3 face=Calibri>&lt;&lt;</FONT></DIV><DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV><DIV><FONT size=3 face=Calibri>Is the user changing the images locally, or adding new ones? If so, and assuming the image is a property of an Entity, then they'll be persisted according to the same rules that other modified properties are. If offline you simply save them to your EntityStateFile; when back online you read them from the EntityStateFile into the cache (unless you happen to know that they're already there) and then do a normal save.</FONT></DIV><DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV><DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV><DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV><DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 05 Mar 2010 12:23:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6305#6305</guid>
  </item> 
  <item>
   <title>Application Design Question Lage Data Items : What I&#8217;m thinking I want to do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6303#6303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 05-Mar-2010 at 6:54am<br /><br /><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>What I’m thinking I want to do to limit network bandwidth as well as make full disconnected application availability to “know” data is have a local instance of a database say using sqlexpress. The program logic flow I’m thinking about is this.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>When the UI (end user) requests a “picture” if first looks for it in the cache if it’s not there is looks for it in the local database if it’s not there it then tries to get it for the remote database. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>When it is found it will place it in the local database. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Once it’s in the Local DB there should never be wire trip to get that image. Each image by design is static, if the image changes a new one will be added (old one keep for historic reasons)</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>So using DevForce, the BOS, Cache, and EntityManager etc I’m trying to think of a way to implement this logic. And if this sounds like it will work ok.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>In a nut shell I only want to use the SaveCacheState() and RestoreCacheState() when:</FONT></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" =MsoListParagraphCxSpFirst><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>1)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Getting data to work offline</FONT></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" =MsoListParagraphCxSpMiddle><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>2)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Saving changes after working offline</FONT></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1" =MsoListParagraphCxSpLast><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>3)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Saving changes back to the Master Remote DB after coming back online</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>There is a brief section in the Doc under Business Object Persistence – Advanced called “Access Both Local and Remote Data Sources in the Same N-tier Application” This is what I want to do.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>If I understand it correctly I will need 2 EntityManager all sounds good. I think I get it.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>Now the design question.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>If I have a table called ProductImages that hold 300,000 + images on the remote server, and let’s say I have already loaded all that data to my local DB, when I’m disconnected would I use the Cache or my localDB. If I use the Local_EntityManager the stuff will be saved to LocalDB great but how would I get that data back to the remote DB when I come back online. I’m trying to avoid using Merge Replication.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>So any high level design recommendations would be great. I would like to see a reference application of this design pattern.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>I would be willing to help provide one as I think this would be a common implementation and a reference app from DevForce would be cool.</P><DIV></DIV><DIV></DIV>Thanks<DIV></DIV>Dave</FONT></FONT>]]>
   </description>
   <pubDate>Fri, 05 Mar 2010 06:54:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6303#6303</guid>
  </item> 
  <item>
   <title>Application Design Question Lage Data Items : When you restore the contents...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6290#6290</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 04-Mar-2010 at 1:48pm<br /><br />When you restore the contents of an EntityCacheState file into the cache, you have to bring the whole thing in: there's no way to go into the file and pick out a single entity or piece of data.&nbsp; So I think your best bet would be simply to store the images in a folder on the local disk, and have enough information in the related entity to find the correct local file. You can of course encrypt the images if you need to.<br><br>We generally prefer a database architecture in which large images are stored in a separate table from the entity to which they apply; e.g, an <i>EmployeeImage </i>table separate from, and related to, the <i>Employee </i>table. That way you retrieve all of the lightweight Employee entities that you need, and only retrieve an Employee's image when you actually need it. That can solve a lot of performance issues right there.<br><br>Incidentally, the BOS, which is DevForce middleware, isn't involved when DevForce on the client communicates with an EntityState file on the client.<br>]]>
   </description>
   <pubDate>Thu, 04 Mar 2010 13:48:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6290#6290</guid>
  </item> 
  <item>
   <title>Application Design Question Lage Data Items : I&#8217;m working on an application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6277#6277</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1666<br /><strong>Posted:</strong> 02-Mar-2010 at 8:46am<br /><br /><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>I’m working on an application that needs to be disconnected at times.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>The SaveCacheState() and RestoreCacheSate() looks like it will work well for most of the application architecture.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>The question I have is centered around (for example) the use of large image files for instance.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>Let’s say the application (WinForm and or Silverlight) would contain thousands of pictures. I would not want to make a wire trip to hydrate them on the client; I want to store them locally. My method prior to DevForce was to have an instance of SQLExpress on the client and store them there as blobs. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>I would then use Merge Replication to keep the data in sync when connected.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>So the question I have is could I and or should I store these bits in a Cache file?</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>Is there a limitation on the size and what would the performance penalty be for “finding” the correct picture to display? When I would want to show a picture how is it retrieved from the cache it the entire cache need to be expanded or is the BOS smart enough to just extract the one I need from the file.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>In the Hello DevForce App it shows a picture for each Employee if we had a DB that had 20,000 employees in it and it needed to be disconnected what could be an approach to achieving this.</FONT></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><FONT size=3 face=Calibri>Any design pattern around the architecture would be appreciated. Preferably one that would work for both a Win Client and a OOB SilverLight App.</FONT></P>]]>
   </description>
   <pubDate>Tue, 02 Mar 2010 08:46:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1666&amp;PID=6277#6277</guid>
  </item> 
 </channel>
</rss>