I would try to find a way to not update every row every time the DP
changes.  You might need to use callLater to delay the updates on each
row.

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of arpan srivastava
Sent: Thursday, April 12, 2007 12:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [flexcomponents] please help! timeout error with large
data?



if i make only one row visible thenit can make. it takes around 35 - 40
secs to plot 2000 point on each line chart with circleitemrenderer and
without that it is  pretty fast. 

----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 10:54:00 AM
Subject: RE: [flexcomponents] please help! timeout error with large
data?



Hmm, still sounds like 14000 to me.  If you make only one row visible,
is performance acceptable?

________________________________

From: flexcomponents@ yahoogroups. com [mailto:flexcompone
[EMAIL PROTECTED] com] On Behalf Of arpan srivastava
Sent: Wednesday, April 11, 2007 8:33 PM
To: flexcomponents@ yahoogroups. com
Subject: Re: [flexcomponents] please help! timeout error with large
data?



it's not like 14000 points.
I have seven rows in the datagrid with each row having a linechart in
one cell,and each line chart is to be plotted for 2000 values. problem
comes only when i use itemrenderer to display circles also.


----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED] com>
To: flexcomponents@ yahoogroups. com
Sent: Thursday, April 12, 2007 2:18:25 AM
Subject: RE: [flexcomponents] please help! timeout error with large
data?



7 rows of 2000  is 14000 points.  That's quite a bit.  Do they all have
to change at once?

________________________________

From: flexcomponents@ yahoogroups. com [mailto:flexcompone
[EMAIL PROTECTED] com] On Behalf Of arpan srivastava
Sent: Wednesday, April 11, 2007 8:09 AM
To: flexcomponents@ yahoogroups. com
Subject: Re: [flexcomponents] please help! timeout error with large
data?



i figured out whats the cause of timeout error but not able to find a
solution.

    in my itemrenderer for the datagrid i am constructing linechart with
a CircleItemRenderer and this takes lot of time . If i don't use any
itemrenderer then it works fine, but i need a linechart with points.

Is there anyway i can make circle after making linechart?

          // Add a lineSeries 
          lineS = new LineSeries() ;
          lineS.setStyle( "lineStroke" ,lineStroke) ;
          lineS.setStyle( "form","segment" );
          lineS.setStyle( "itemRenderer" ,new ClassFactory(
CircleItemRender er));
          lineS.yField = "data";
          seriesArray. push(lineS) ;

          lineChart.series = seriesArray;

for now my data contains around 2000 values for each line chart and
there are seven rows in the datagrid and only one column with linechart
in it's each cell.


----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED] com>
To: flexcomponents@ yahoogroups. com
Sent: Tuesday, April 10, 2007 10:32:52 PM
Subject: RE: [flexcomponents] please help! timeout error with large
data?



Probably.  You have to find out where all the time is being spent and do
some optimization.
 
How much data is a "large amount"?  How many line and bar charts are on
screen?  Do all of them need updating or can you stop certain ones from
updating?  Can you break up the updates and just do one pair of charts
at a time?
 
You could take one of your line and bar charts and measure how long it
takes to update them with new data when outside of the DG, then test
with only one pair in the DG.  One way I do this is to put an
"enterFrame" listener on the stage and trace out the value of
getTimer().  Normally, you'll see the value increase by the frame-rate.
Then when it gets busy you'll see the value increase by much more and
that gives you an idea of the overhead.
 
-Alex

________________________________

From: flexcomponents@ yahoogroups. com [mailto:flexcompone
[EMAIL PROTECTED] com] On Behalf Of arpan srivastava
Sent: Tuesday, April 10, 2007 8:47 AM
To: Flex Components
Subject: [flexcomponents] please help! timeout error with large data?



Hi All,

    I am getting this error when I give a large amount of data to my
component that consists  of a datagrid with line charts and bar charts
in it's columns.

Error: Error #1502: A script has executed for longer than the default
timeout period of 15 seconds.
at mx.managers. layoutClasses: :PriorityQueue/ removeSmallestCh ild()
at mx.managers: :LayoutManager/ validateClient( )
at mx.core::UIComponen t/validateNow( )
at mx.controls. dataGridClasses: :DataGridBase/ mx.controls.
dataGridClasses: DataGridBase: :drawItem( )
at mx.controls. dataGridClasses: :DataGridBase/ mx.controls.
dataGridClasses: DataGridBase: :makeRowsAndColu mns()
at mx.controls: :DataGrid/ mx.controls: DataGrid: :makeRowsAndColu mns()
at mx.controls. listClasses: :ListBase/ mx.controls. listClasses:
ListBase: :updateDisplayLi st()
at mx.controls: :DataGrid/ mx.controls: DataGrid: :updateDisplayLi st()


I did following:
    scriptTimeLimit= "500" scriptRecursionLimi t="50000"

but is there any other way around ?


________________________________

Never miss an email again!
Yahoo! Toolbar
<http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar
/features/mail/>  alerts you the instant new Mail arrives. Check it out.
<http://us.rd.yahoo.com/evt=49937/*http://tools.search.yahoo.com/toolbar
/features/mail/>  



________________________________

Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites
<http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVp
BF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0w
Nw-->  to find flight and hotel bargains. 



________________________________

We won't tell. Get more on shows you hate to love
<http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265> 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
<http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265>




________________________________

Food fight?
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTE
wOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&s
id=396545367>  Enjoy some healthy debate
in the Yahoo! Answers Food Drink Q&A.
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTE
wOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&s
id=396545367>  

 

Reply via email to