On 30 November 2010 17:47, Oleg Broytman <p...@phd.pp.ru> wrote:
>   You can use low-level API like connection.query('LOCK...'). But I think
> a better way would be to insert an AssemblyResult row in advance, use its
> generated id (databases guarantee uniqueness and monotony of generated
> id's) to create a document and then update the row with the name of the
> document:

This is (sort of) the approach I have now, but it won't work for
indexing results for individual assemblies (which is what I want to
move to), eg:

>    row = AssemblyResult(doc, ...)
>    number = row.id

Even if this result is the first for a particular assembly, "number"
will be something in the tens-of-thousands, instead of just 1. So
maybe the low level API is the way to go.

Cheers,
Jason

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to