PDA

View Full Version : datapointer.ondata: fires after it is "consumed"


tspratt
03-04-2004, 02:27 PM
It appears that referencing a dataset, as in a datapath argument, delays the firing of the datapointer's ondata event.

I have an HTTP dataset that is referenced in about 20 datapath attributes. It takes about 3000ms from doRequest() to .ondata.

If I create a dummy dataset(or change the name of this one) the ondata fires after about 500ms.

Is this expected behavior?

Tracy

adam
03-07-2004, 08:17 AM
The dataset's ondata event is sent after all dependent datapointers have updated, and data operations can be slow.

However, a datapath will send ondata before the datapaths below it update. Right now, there isn't a good way to intercept inbound data. One workaround is to use two datasets -- sort of a buffer. You load your data into one dataset, and then copy that data into the second dataset when you're ready to use it.