[Dbix-class] Occasional problems with multilevel has_many prefetches

Matt S Trout dbix-class at trout.me.uk
Mon Nov 27 15:54:52 GMT 2006


Nigel Metheringham wrote:
> 
> On 26 Nov 2006, at 15:31, Nilson Santos Figueiredo Junior wrote:
>> Hopefully that test case will be enough. However, I've encountered
>> situations where it worked alright for some data sets. It's somewhat
>> dependant on the data *and* on the order_by clause of your query
>> (sometimes the same query would work when ordered using some columns,
>> sometimes it would stop working using another columns, etc).
> 
> I suspected that it was data dependant, and was surprised at how easily
> I could provoke this bug with the test database. Still, having a test
> for 2 level pre-fetch in the joins test code can only help expose these
> problems and any future regressions :-/ .

I'm frankly amazed we're not already twigging it in a test somewhere. Sigh.

I'm looking at it, expect me to put out a call for testing as soon as I get it 
working.



More information about the Dbix-class mailing list