Re: @Cached and caching in general

2008-03-25 Thread Davor Hrg
caching every method by default is definitely too error prone, and unexpected for most people. On Tue, Mar 25, 2008 at 3:23 PM, Francois Armand <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Yes, you are right. But loops are usually inside of components and pages > contain those compo

Re: @Cached and caching in general

2008-03-25 Thread Francois Armand
[EMAIL PROTECTED] wrote: Yes, you are right. But loops are usually inside of components and pages contain those componentsbut all methods in the page itself could be @Cache methods in my opinion if you do a "component based approach" and always package logical widgets into a component.

Re: @Cached and caching in general

2008-03-25 Thread superoverdrive
-Nachricht > Datum: Tue, 25 Mar 2008 13:33:19 +0100 > Von: Francois Armand <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: @Cached and caching in general > Tobias Marx wrote: > > Wouldn't it be useful to make the @Cache annotation the default >

Re: @Cached and caching in general

2008-03-25 Thread Francois Armand
Tobias Marx wrote: Wouldn't it be useful to make the @Cache annotation the default annotation for all methods? I can not imagine a case where it would make sense that during the rendering of a page returns different results... Just an example : you are in a loop (or grid or a beaneditor any

Re: AW: @Cached and caching in general

2008-03-19 Thread Davor Hrg
good idea. Do you mean requesting a page and cut > it out or grabbing part of the DOM during same request. Just wondering... . > > -Ursprüngliche Nachricht- > Von: Davor Hrg [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 19. März 2008 10:42 > An: Tapestry user

Re: AW: @Cached and caching in general

2008-03-19 Thread Andreas Andreou
ation. Since you have a fallback solution at hand (cron-jobs + > > > disk fragments) you are at the safe side. But I am in doupt if you > > > really need the markup being cached. Caching the database results > > > and recreate markup sounds more reasonable. You might save you lot

AW: AW: @Cached and caching in general

2008-03-19 Thread Martin Kersten
-- Von: Davor Hrg [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. März 2008 10:42 An: Tapestry users Betreff: Re: AW: @Cached and caching in general I agree that this is not something to take on lightly, and data should be cached, and rendering left as is. but besides caching this king of compon

Re: AW: @Cached and caching in general

2008-03-19 Thread Davor Hrg
mpliest solution first. So database queries without any caches. > >> > Once you see any problems (performance is below required) just go for > >> > optimization. Since you have a fallback solution at hand (cron-jobs + > >> > disk fragments) you are at the sa

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
ase results > and recreate markup sounds more reasonable. You might save you lots > of seeking time. > > But you always know: Only the code / application will tell you! > > > Cheers, > > Martin (Kersten) > > -----Ursprüngliche Nachricht- > Von: Tobias

Re: AW: @Cached and caching in general

2008-03-18 Thread Howard Lewis Ship
sounds more reasonable. You might save you lots > > of seeking time. > > > > But you always know: Only the code / application will tell you! > > > > > > Cheers, > > > > Martin (Kersten) > > > > -Ursprüngliche Nachricht- &

Re: @Cached and caching in general

2008-03-18 Thread Howard Lewis Ship
would make sense that during the rendering > of a page returns different results... > > Original-Nachricht > > Datum: Tue, 18 Mar 2008 11:53:09 -0500 > > Von: "Adam Zimowski" <[EMAIL PROTECTED]> > > > An: "Tapestry users&q

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
rt your application. As always use > >> > the simpliest solution first. So database queries without any caches. > >> > Once you see any problems (performance is below required) just go for > >> > optimization. Since you have a fallback solution at hand (cron-job

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
ve you lots > of seeking time. > > But you always know: Only the code / application will tell you! > > > Cheers, > > Martin (Kersten) > > -Ursprüngliche Nachricht- > Von: Tobias Marx [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 18. März 2008 17:45

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
hed. Caching the database results > > and recreate markup sounds more reasonable. You might save you lots > > of seeking time. > > > > But you always know: Only the code / application will tell you! > > > > > > Cheers, > > > > Martin (Kersten) > >

Re: AW: @Cached and caching in general

2008-03-18 Thread Andreas Andreou
will tell you! > > > > > > Cheers, > > > > Martin (Kersten) > > > > -Ursprüngliche Nachricht- > > Von: Tobias Marx [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 18. März 2008 17:45 > > An: Tapestry users > > Betr

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php framewor

RE: @Cached and caching in general

2008-03-18 Thread Jonathan Barker
. Mimic what is done currently, but perhaps schedule refreshes with Quartz and keep it within the same app. Jonathan > -Original Message- > From: Tobias Marx [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2008 1:35 PM > To: Tapestry users > Subject: AW: @Cached and cac

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
8 +0100 > >> Von: "Filip S. Adamsen" <[EMAIL PROTECTED]> > >> An: Tapestry users > >> Betreff: Re: AW: @Cached and caching in general > > > >> A factor 100?? C'mon. If, and I stress IF, your application would > >>

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
-Nachricht > Datum: Tue, 18 Mar 2008 18:22:01 +0100 > Von: "Martin Kersten" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: AW: @Cached and caching in general > You might want to know what tapestry does with your templates. > Tapestry read

Re: AW: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
4:28 +0100 Von: "Filip S. Adamsen" <[EMAIL PROTECTED]> An: Tapestry users Betreff: Re: AW: @Cached and caching in general A factor 100?? C'mon. If, and I stress IF, your application would benefit that much from this, fine. But Tapestry 5 applications in general would - I

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
Martin (Kersten) -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 18:15 An: Tapestry users Betreff: AW: @Cached and caching in general > The problem is context I guess. Usally your component depends on lots > of stuff. Para

Re: AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
ity and > everything that avoids template parsing would increase the speed a lot. > > > > > > Original-Nachricht > >> Datum: Tue, 18 Mar 2008 18:01:40 +0100 > >> Von: "Martin Kersten" <[EMAIL PROTECTED]> > >> An: "Tapestry users"

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
> The problem is context I guess. Usally your component depends on lots > of stuff. Parameters, URL, Services, Page-state, component state, > HTTP-Parameters and so on. Yes...but it must be possible somehow as some PHP template engines also do it. Isn't there already some mechanism in the inte

Re: AW: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
08 18:01:40 +0100 Von: "Martin Kersten" <[EMAIL PROTECTED]> An: "Tapestry users" Betreff: AW: @Cached and caching in general @Chached is only used during a single page rendering cycle. It would not apply to your situation. (as far as I know) Source: http://sqllyw.wordpr

Re: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
ginal-Nachricht Datum: Tue, 18 Mar 2008 11:53:09 -0500 Von: "Adam Zimowski" <[EMAIL PROTECTED]> An: "Tapestry users" Betreff: Re: @Cached and caching in general @Cache works on per request basis, so that anything you return from a method which has @Cache annotatio

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
. Original-Nachricht > Datum: Tue, 18 Mar 2008 18:01:40 +0100 > Von: "Martin Kersten" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: AW: @Cached and caching in general > @Chached is only used during a single page rendering cycle. It would not >

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
needed. But as far as I know Tapestry and its agility, all you need -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:58 An: Tapestry users Betreff: Re: @Cached and caching in general Ok. Thanks...this is what I wanted to know. What

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks? Or is this a pure memory-based cache? I am thinking about migrating an old PHP

Re: @Cached and caching in general

2008-03-18 Thread Tobias Marx
00 > Von: "Adam Zimowski" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: @Cached and caching in general > @Cache works on per request basis, so that anything you return from a > method which has @Cache annotation will get actually "built"

Re: @Cached and caching in general

2008-03-18 Thread Tobias Marx
y hour it would re-generate/refresh its output and this way save lots of performance. Original-Nachricht > Datum: Tue, 18 Mar 2008 17:52:11 +0100 > Von: "Davor Hrg" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: @Cached and

Re: @Cached and caching in general

2008-03-18 Thread Adam Zimowski
@Cache works on per request basis, so that anything you return from a method which has @Cache annotation will get actually "built" or "retrieved" only once - but only once per http request. So if you're building an expensive HTML fragment: @Cached public String buildExpensiveHtmlFragment() { //.

Re: @Cached and caching in general

2008-03-18 Thread Davor Hrg
@Cached is an annotation that caches method call result per request. so while page is rendering if multiple pieces of template require that property it gets called only once... Davor Hrg On Tue, Mar 18, 2008 at 5:44 PM, Tobias Marx <[EMAIL PROTECTED]> wrote: > I have not used T5 yet, but would @C

@Cached and caching in general

2008-03-18 Thread Tobias Marx
I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks? Or is this a pure memory-based cache? I am thinking about migrating an old PHP application to T5 - it has really a lot of traffic and any users are log