Read strategy notes

goran at krampe.se goran at krampe.se
Fri Sep 22 10:31:17 UTC 2006


Hi!

First a small gotcha:

strategy _ MaReadStrategy minimumDepth: 1.
session readStrategy: strategy.
strategy
		forVariableNamed: 'users' onAny: Q2Model readToDepth: 2;
		forVariableNamed: 'persons' onAny: Q2Model readToDepth: 99.

etc.

Nope. Bad idea. :) The #readStrategy: send must be last because it will
prepare it etc.

Secondly - is there a reason for not having BlockContext in the 99-list
in #initializeDefaultSpecifications?

I ended up with tons of silly materializations when having an initialize
method that creates a SortedCollection using sortBlock:. That resulted
in a stored BlockContext which sucks down the initialize method into
Magma etc etc. So how do people deal with SortedCollections with
sortBlocks?

over and out for now, Göran


More information about the Magma mailing list