Re: [Metakit] Feature Req: sort view on function

2003-09-03 Thread Brian Kelley
David McNab wrote: I'd love some way to do: v = db.view('myview')... v1 = v.sortusing(lambda r1,r2: cmp(len(r1.field1), len(r2.field1))) Using a function to sort will always be a little slow. I have a python version of what you are wanting that has reasonable performance (2ghz pentium 4),

RE: [Metakit] Using head of file

2003-09-03 Thread David Van Maren
Title: RE: [Metakit] Using head of file JC: Thankyou for the clarification regarding using the head of a Storage. It sounds like I'll be able to use it quite easily. DVM [EMAIL PROTECTED]

Re: [Metakit] compile error

2003-09-03 Thread Nicholas Riley
On Wed, Sep 03, 2003 at 02:08:39PM +0200, Joost Kremers wrote: On Wed, Sep 03, 2003 at 01:40:58AM -0500, Nicholas Riley wrote: The problem here is that the build system assumes that where 'long long' is defined, 'LONG_LONG' is also defined. I've fixed that mistaken assumption, along with

Re: [Metakit] compile error unicode

2003-09-03 Thread Joost Kremers
On Wed, Sep 03, 2003 at 10:31:11AM -0500, Nicholas Riley wrote: http://web.sabi.net/temp/metakit-2.4.9.2+njr0.1.tar.gz thanks! just tried it and it builds fine, using 'python setup.py install'. btw, i forgot to mention in my previous message that i did get two warnings that you may or

[Metakit] How long to wait before commiting?

2003-09-03 Thread Brian Kelley
I am loading a database with a bunch of new data that the user is allowed to validate. I have been using commit() and rollback() for these operations because it's easy :) The question I have is, what are the ramifications of loading a lot of data without commiting? Memory? Speed? Inquiring

Re: [Metakit] How long to wait before commiting?

2003-09-03 Thread Jean-Claude Wippler
Brian Kelley wrote: I am loading a database with a bunch of new data that the user is allowed to validate. I have been using commit() and rollback() for these operations because it's easy :) The question I have is, what are the ramifications of loading a lot of data without commiting?