Welcome, Guest. Please login or register.
Did you miss your activation email?
May. 22, 2012, 10:57:41 AM
55238 Posts in 12404 Topics by 73716 Members
Latest Member: adelon3bt4vf1cp
News:
 
The PRADO Community » Prado v3.x » General Discussion » PRADO performance tuning for high-traffic web applications « previous next »
Pages: [1] Print
Author Topic: PRADO performance tuning for high-traffic web applications  (Read 2101 times)
giavinh
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile WWW
« on: Mar. 01, 2008, 11:51:15 AM »

Hi all,

I saw this topic http://www.eioba.com/a77342/prado_performance_tuning_for_high_traffic_web_applications , I really like it but there are something unclear with me.

Can anybody give me more examples code about:

Quote
c) Set cache class   * * * * *

Don't generate all the data on every request. PRADO can save parsed templates, configurations etc. in cache. (can be enabled in application.xml)

d) Keep pagestate in your database  * * * *

PRADO pagestate can be really big – it’s about 10kb-100kb of data. And by default, you send this data on every AJAX request!  (just use TDatabasePageStatePersister class)

e) Sometimes it's better to set PostState of ActiveControl to false  *

If you have a control like TAutoSuggest, by setting this option, you prevent PRADO from gathering all fields on a form values, on every AJAX request. ( ActiveControl.ClientSide.PostState="false" )

Thank you so much,
Best Regards,
Logged
schmunk
PRADO Supporter
Platinum Member
*

Karma: 17
Offline Offline

Posts: 505


Google Ron Paul


View Profile WWW
« Reply #1 on: Mar. 05, 2008, 03:38:18 PM »

Not directly an answer to your question, but if you really care about performance, take a look a this post:
http://www.pradosoft.com/forum/index.php/topic,8490.0.html
Logged

lithron & phundament - components for PRADO 3
http://sourceforge.net/projects/lithron
http://www.phundament.com
notzippy
Senior Member
***

Karma: 14
Offline Offline

Posts: 234


View Profile
« Reply #2 on: Mar. 05, 2008, 04:12:31 PM »

Im no expert but I think the following is correct

D) TdatabasePageStatePersitor inspired the module TCachePageStatePersister and by specifiyng a cache of database type you can implement the storage in database (or any other cache module). NOTE On MySql if you let the cache create the table it creates the field as a Blob object NOT a LONGBLOB there was a bug report on this that it has been fixed but it isnt in the current 3.1.1 release I spent the better part of a morning trying to figure this out, especially since it does not initially appear as being related. (The page state data gets added but when it is extracted a null is returned, of course this doesnt occur on all the serialized data just on large pages so tracking it down is a B****)

E) The attribute returns a TCallbackClientSide (Accessed by ClientSide.PostState="false") And the documentation is wrong for this class (The heading says the attribute is PostInputs, no such attribute exists but I assume Wei was talking about the PostState ?!?)

And C) has been answered.

Hope that helps
z
Logged
Pages: [1] Print 
« previous next »
Jump to: