Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-13 Thread Ryan Heath
J.Miller wrote: > The easiest way would be to put all never-expires items in their own cache that > never needs to be locked at all. Yes, but what when A is a less frequent expiring item, then we have still the same problem.. anyway thanks for bringing suggestions! I really appreciate them. // R

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Ben Kloosterman
Hi Frans , > > no, it gets more complicated. To be blunt: caching data is a > tedious task which often goes wrong. Also the purpose of caching is > misunderstood. My dreaded caching-is-hard-example: say you have 50 > customer objects in the cache. The application wants to load all > cust

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread J. Merrill
At 11:48 AM 10/12/2004, Ryan Heath wrote >Merrill wrote: >> This is where the ReaderWriterLock concept is appropriate > >Yes, it sure is, but in my case I'd like to extented it a bit, the >RWlock should not be held on the cache itself but on the item in the >cache. Let me explain: >Say the cache ho

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Ryan Heath
Merrill wrote: > This is where the ReaderWriterLock concept is appropriate Yes, it sure is, but in my case I'd like to extented it a bit, the RWlock should not be held on the cache itself but on the item in the cache. Let me explain: Say the cache holds item A and B, A never expires but B expires

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread J. Merrill
At 06:08 AM 10/12/2004, Ryan Heath wrote >Frans Bouma wrote: >>If a page cache invalidates, the first request will hit the db, >> the second will get the cached version. > >Yep, sure, but this implies a locking mechanism on the cache / >cacheItem / cacheKey. >Anyone ideas how to do this in

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Frans Bouma
On Behalf Of Frans Bouma > Sent: 12 October 2004 12:19 > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL > > Isn't that caching header used to control proxy server caches? I.e.: > when 500,000 desktop boxes connect to your website

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Andrew Gayter
: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Frans Bouma Sent: 12 October 2004 12:19 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL Isn't that caching header used to control proxy server caches? I.e.: when 50

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Frans Bouma
t; > Regards, > Andrew > > Developmentor Instructor > Course Author > > > -Original Message- > From: Unmoderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Frans Bouma > Sent: 12 October 2004 10:28 > To: [EMAIL PROTECTED]

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Andrew Gayter
ndrew Developmentor Instructor Course Author -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Frans Bouma Sent: 12 October 2004 10:28 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL > Fr

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Ryan Heath
I just knew you would reply this answer, thanks. === This list is hosted by DevelopMentorĀ® http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles h

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Thomas Tomiczek
> -Original Message- > From: Unmoderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Heath > Sent: Dienstag, 12. Oktober 2004 12:35 > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL &g

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Ryan Heath
Thomas, Frans did not explicitly refer to asp.net and I was referring to VB6. Also in my case, I cache html-parts of a page, therefor I cannot use the IIS output cache. When I say cache, I mean storing the html string into an hashtable-a-like object with a timeout period specifying how long the ob

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Thomas Tomiczek
Message- > From: Unmoderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Heath > Sent: Dienstag, 12. Oktober 2004 12:08 > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL > > Frans Bouma wrote

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Ryan Heath
Frans Bouma wrote: >If a page cache invalidates, the first request will hit the db, > the second will get the cached version. Yep, sure, but this implies a locking mechanism on the cache / cacheItem / cacheKey. Anyone ideas how to do this in VB6? I rather not want to lock the cache itself,

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Frans Bouma
> Frans Bouma wrote: > > To save webserver power because the website gets 500,000 > hits per day? > > Perhaps a page caching with 1 minute per page will help. Often that > > will give much more performance boosts than lowlevel caching with a > > lot of overhead. > > > This is what we often do,

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Ryan Heath
Frans Bouma wrote: > To save webserver power because the website gets 500,000 hits per > day? Perhaps a page caching with 1 minute per page will help. Often that > will give much more performance boosts than lowlevel caching with a lot > of overhead. > This is what we often do, but when the cache i

Re: [ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-12 Thread Frans Bouma
> -Original Message- > From: Ben Kloosterman [mailto:[EMAIL PROTECTED] > > In our case we must implement Object Query - long story, business > > requerement. However, I see these two ideas complementing each other; > > there is no conflict. > [Ben Kloosterman] > You can use them as you c

[ADVANCED-DOTNET] MiddleTier Caching was Abstracting SQL

2004-10-11 Thread Ben Kloosterman
> > Thanks Ben. I never thought to cache data in BL/DAL based on query. For me > it has always been the UI responsible for persisting relevant data, be it > WebForms Cache or local form variable. I was so used to doing it I never > even gave it a second thought. [Ben Kloosterman] Your cache wor