[Glass] allSubInstances slow
Johan Brichau via Glass
glass at lists.gemtalksystems.com
Tue Sep 30 01:56:09 PDT 2014
du’h ;)
That runs like a jetfighter versus a bicycle :)
thanks!
Johan
On 29 Sep 2014, at 20:45, Dale Henrichs <dale.henrichs at gemtalksystems.com> wrote:
> Johan,
>
> Take a look at GsDeployer>>doBulkMigrate ... you can do a list instances for a bunch of classes with a single pass through the repoistory ... and I will submit a bug against allSubInstances since this trick should be used there as well...
>
> Dale
>
> On Mon, Sep 29, 2014 at 11:29 AM, Johan Brichau via Glass <glass at lists.gemtalksystems.com> wrote:
> Hi there,
>
> I’m implementing a data migration where I need to do a MyClass allSubInstances, which seems to be very very slow even on a moderately sized database.
> I was wonder if there are better practices to achieve this? The class MyClass has many subclasses.
>
> Is it better do separate the iteration of all those instances per subclass?
> I.e.: MySubClassA allInstances do: […]. MySubClassB allInstances do:[…] etc….
> Or is there any other way to speed things up here?
>
> thanks
> Johan
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140930/4043e9af/attachment.html>
More information about the Glass
mailing list