CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Performance

Print topic Send  topic

Author Message
mavtech

Posts: 133
Posted: 02/25/2008, 8:50 AM

Two questions.

1. When I make a field hidden - do it still calculate the field.
I have a compex calculation by row and it takes some time.
If I hide that field does it still make the complex calculation and then hide.

2. If an included page is hidden does it still make the calculations on that page.

If the answer is yes and it makes no difference in speed.

Then How can I speed up a page that has a lot of included pages, that turn off and on via a menu system. Or do I have to create separate pages.

Paul
View profile  Send private message
mavtech

Posts: 133
Posted: 03/03/2008, 12:55 PM

Anyone have any input.??
View profile  Send private message
datadoit
Posted: 03/03/2008, 2:25 PM

Just a few days ago we had an application with a high number of
simultaneous connections, and on a page there was a grid that was doing
a lot of database and memory i/o. The server was dragging after just a
couple of hours - all the memory was eaten up.

I hid the grid (based on some user and group rules) in the Page's
BeforeShow event, and that seemed to solve the problem of the server
grinding to a halt.

So to answer your question ... a page that was accessed by hundreds of
simultaneous users was running a grid. We hid the grid based on user
perms so only a few saw it, but still hundreds accessed the page, and
performance issues were solved. That would lead me to believe that
hiding a component in the right place will not run that component's
subsequent routines.
wkempees
Posted: 03/03/2008, 3:11 PM

D:
By hiding, do you mean hiding the component by putting it on a panel and
setting that to Visible False?
A Hidden Field with a complex calculation (in BeforeShow or so) would still
do its thing, wouldn't it?
Hmmm, have to test this, thought I knew my stuff, but then a few days ago I
accidently stated that hidden fields were not posted, but of course they
are!

Walter

datadoit
Posted: 03/04/2008, 8:19 AM

I hid the grid itself.

Grid name = "MyGrid"

In the Page's BeforeShow event:

global $MyGrid;
if (whatever) {
$MyGrid->Visible = false;
}

This particular grid was doing a ton of stuff, particularly compiling an
11-page PDF if certain conditions were true. However, those conditions
only applied to a select few, but found that the process (or grid) was
running for everyone. Thus, our server leaned over the side and yakked.
Wasn't pretty.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.