Re: [CodeData] Generic model migration code?
Re: [CodeData] Generic model migration code?
- Subject: Re: [CodeData] Generic model migration code?
- From: Kaspar Fischer <email@hidden>
- Date: Fri, 8 Sep 2006 17:01:20 +0200
On Sep 8, 2006, at 1:52 PM, Jakob Olesen wrote:
I don't have any code for you, sorry. I have thought about the
problem, though, and I think it is difficult (not impossible) to
write *generic* code. If the data is too big to fit in memory, you
have to do intermediate saves without breaking validation. Tricky.
User-defined setters and validators could also cause problems.
You are right. We need to add another assumption: that
the data fits into the model. Otherwise it is going to
get complicated.
As to your method of adding a binary "reserved" attribute.
I have done similar things but am not so happy with it
when I need relations, etc. (as you pointed out, too).
Thanks for the observations.
Kaspar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden