Re: [PyWrapper-devel] OutputModel
Status: Alpha
Brought to you by:
jatorre
From: Shunde Z. <shu...@ad...> - 2007-06-07 01:45:43
|
Hi all, I've written a program using multi-threads to send queries at the same time. I was working before. Yesterday I put in more records to my database(~300000). Today I ran my program, I found that it works if I send one only query at one time. If I sent 2 queries at the same time, it gives me an error. <!-- CONTENT START --> <error xmlns="http://rs.tdwg.org/tapir/1.0" time="2007-06-07 11:13:10.23" level="ERROR">Response preparation and data retrieval error</error> <!-- CONTENT END --> <diagnostics> <diagnostic time="2007-06-07T11:13:02.44" level="INFO">Reading request</diagnostic> <diagnostic time="2007-06-07T11:13:02.49" level="INFO">Read model http://rs.tdwg.org/tapir/cs/abcd/2.06/model/abcd206.xml</diagnostic> <diagnostic time="2007-06-07T11:13:02.51" level="INFO">Request fully parsed</diagnostic> <diagnostic time="2007-06-07T11:13:02.51" level="INFO">Get distinct records...</diagnostic> <diagnostic time="2007-06-07T11:13:02.52" level="INFO">Executing SQL: "SELECT DISTINCT TaxonName.Genus, TaxonName.Species FROM TaxonName AS TaxonName ORDER BY TaxonName.Genus, TaxonName.Species LIMIT 21 OFFSET 0"</diagnostic> <diagnostic time="2007-06-07T11:13:03.47" level="INFO">Parsed response structure contains 991 leaf concepts with type out of 1663 nodes in total</diag nostic> <diagnostic time="2007-06-07T11:13:04.14" level="INFO">Request fully parsed</diagnostic> <diagnostic time="2007-06-07T11:13:04.15" level="INFO">Init model ACBD 2.06 with datasource preferences</diagnostic> <diagnostic time="2007-06-07T11:13:04.55" level="INFO">Model init finished. The model contains 1324 mapped concepts for datasource 'avh' out of 1324 m odel nodes mapped.</diagnostic> <diagnostic time="2007-06-07T11:13:04.55" level="INFO">Update model structure with datasource preferences</diagnostic> <diagnostic time="2007-06-07T11:13:10.17" level="INFO">DB query finished</diagnostic> <diagnostic time="2007-06-07T11:13:10.17" level="ERROR">GENERATING_CONTENT_FAILED</diagnostic> <diagnostic time="2007-06-07T11:13:10.23" level="ERROR">Response preparation and data retrieval error</diagnostic> <diagnostic time="2007-06-07T11:13:10.24" level="ERROR">GENERATING_CONTENT_FAILED</diagnostic> Strangely, i sent one inventory and one search, but the errors I got are the same, which is like doing an inventory query as above. Could you please give me some idea of how to solve it? thanks a lot. Cheers, Shunde. Quoting Markus Döring <m.d...@bg...>: > shunde, > you are right in your assumptions. it needs to be external so it can > be shared across the network of providers. > but pypwrapper caches the file and you can specify the > cacheExpiration time for all downloaded files (actually ANY > downloaded file is being cached locally) > > http://trac.pywrapper.org/pywrapper/browser/trunk/config/config.ini > > cheers > -- > Markus > > > > On 29.05.2007, at 07:23, Shunde Zhang wrote: > > > Hi all, > > > > I am writing a program to access pywrapper3.1alpha. When I compose > > a request XML > > to do a 'search', I found that I need to put in outputModel, or > > externalOutputModel, otherwise it will give me: > > ERROR! GENERATING_CONTENT_FAILED > > > > The external location for it is: > > http://rs.tdwg.org/tapir/cs/abcd/2.06/model/abcd206.xml > > > > Does it mean for each query pywrapper will go and grab this to > > render the output > > xml? > > > > I would like to know if pywrapper have such a file installed in its > > directory so > > that I dont need to make an external connection. > > > > Can this be configured as a default location so that I don't need > > to specify it > > in each query XML? > > > > Thanks a lot. > > > > Cheers, > > Shunde. > > > > ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > PyWrapper-devel mailing list > > PyW...@li... > > https://lists.sourceforge.net/lists/listinfo/pywrapper-devel > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > PyWrapper-devel mailing list > PyW...@li... > https://lists.sourceforge.net/lists/listinfo/pywrapper-devel > |