Multiple retrieveRecord requests for the same record #474

Closed
rvalle opened this Issue May 24, 2011 · 7 comments

Comments

Projects
None yet
4 participants

rvalle commented May 24, 2011

SC is hitting our server 3 times for the same individual record. before it would only ask for it once.

Seems to have been introduced in 1.6.0.rc.2

Contributor

wagenet commented May 24, 2011

Looks like #472 adds tests for this.

Contributor

drogus commented May 24, 2011

@wagenet I don't think that's the same issue. The problem there is connected with using toMany association and lack of retrieveRecords usage.

@rvalle: do you have values from that record used in a view more than once? I think that the reason for this could be that view is trying to get 3 values and since request has not yet finished it fires it one time for each value.

rvalle commented May 24, 2011

I think we have several views using the same record. And since the request is not finished, it is requesting several times.

I think that on previous implementations if a record was been requested there would not be subsequent requests...

I will look deeper into the issue.

Contributor

wagenet commented May 26, 2011

@rvalle, this seems like a serious issue. Any updates?

rvalle commented May 27, 2011

I have been busy fixing my IE8 issues. I am going to look into what is happening now.

I have the feeling that the way observers worked have changed... things are faster now. My guess is that whatever lock mechanism to know if a request is been fetch doesn't work now... we are instantiating an number of views that may requests make use of the same records (just as a twitter application may have multiple messages referencing the same sender). and that is triggering multiple requests at the same time.

let me look a bit into this and I see if I can provide further details.

Contributor

wagenet commented May 27, 2011

@rvalle that would be great. I hate making you do too much legwork but that definitely will help us find a solution.

Owner

publickeating commented Apr 2, 2013

Closing for being stale, please re-open if still around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment