On Saturday 09 May 2009 08:05:25 am johnf wrote:
> On Saturday 09 May 2009 07:55:42 am Ed Leafe wrote:
> > On May 9, 2009, at 9:44 AM, johnf wrote:
> > > Thanks Ed.  If there is anything I can do to help - just yell.
> > > Maybe some
> > > testing.  Today and tomorrow aren't great (have to visit two
> > > mothers) but
> > > I'll take a computer with me to both homes.
> >
> >     Can you try this patch?
> >
> >
> > -- Ed Leafe
> >
> >
> > Index: biz/dBizobj.py
> > ===================================================================
> > --- biz/dBizobj.py  (revision 5201)
> > +++ biz/dBizobj.py  (working copy)
> > @@ -1929,6 +1929,7 @@
> >             """This method ensures that the passed cursor's properties
> >             are in sync with this bizobj.
> >             """
> > +           crs.KeyField = self._keyField
> >             crs.AutoPopulatePK = self._autoPopulatePK
> >             crs.AutoQuoteNames = self._autoQuoteNames
> >             if self._dataStructure is not None:
> > @@ -1940,7 +1941,6 @@
> >             crs.UserSQL = self._userSQL
> >             crs.VirtualFields = self._virtualFields
> >             crs.Encoding = self.Encoding
> > -           crs.KeyField = self._keyField
> >             crs.setNonUpdateFields(self._nonUpdateFields)
>
> I choose not to save my changes and performance increase was from 40+
> seconds to 10sec.  Will next check the actual save.

The performance gain is the same for saves.  Testing on my other forms appear 
to work too. 

-- 
John Fabiani

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to