Ed Leafe wrote:
> On Dec 22, 2006, at 11:54 PM, Paul McNett wrote:
>
>> You can see the slowness in the OneToManyApp demo even with
>> limiting the
>> resultset to 20 records, which only has one parent and one child.
>> Especially if you first visit each parent record, which fills in the
>> children for each parent.
>
> from dabo.lib.profilehooks import process as profile
>
> @profile
> def requery()
Any idea which package I need to install to get profile? I swear in
prior ubuntu's I had it without having to do anything special.
File "/home/pmcnett/projects/dabo/dabo/lib/profilehooks.py", line
105, in ?
from profile import Profile
ImportError: No module named profile
> First verify where the slowness is.
Well, I verified it by noting how many records were being iterated over,
and how long each iteration takes. No doubt we could speed up the
iteration in various places, but do you have any problems with inverting
the design like I suggested, since I believe that will be much more
scalable?
--
pkm ~ http://paulmcnett.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev