Displaying 5 results from an estimated 5 matches for "run_query".
Did you mean:
res_query
2013 Jul 03
2
Potential memory leak when assigning MSetItem values
...o != 2:
raise
db = x.WritableDatabase(path, x.DB_CREATE)
for i in xrange(1, num_docs):
doc = x.Document()
doc.set_data(json.dumps({ 'id': i, 'enabled': True }))
doc.add_term('XTYPA')
db.add_document(doc)
return db
def run_query(db, num_docs=100000):
e = x.Enquire(db)
e.set_query(x.Query('XTYPA'))
m = e.get_mset(0, num_docs, True, None)
# Store the MSetItem's data, which causes a memory leak
data = []
for i in m:
data.append({ 'data': i.document.get_data(), 'id':...
2013 Jul 10
2
Potential memory leak when assigning MSetItem values
...> > Run the following code and monitor the PID's memory usage in top or a
> > similar program. I've observed the resident memory for this example go
> from
> > 18m to 52m after deleting objects and running garbage collection.
>
> If I set it to repeat the call to run_query 10 times, the memory usage
> doesn't keep growing, so it looks to me like the heap of the process
> has just grown, and doesn't get returned to the OS again.
>
> Certainly the number of objects Python knows about is constant (add a
> call to print len(gc.get_objects()) after...
2006 Feb 07
1
Omega
Are there any options to forming queries with Omega? For instance can
you specify a proximity search like "file near 5 manager"? If so, where
might I find this documented? I don't see it in the docs directory.
Thanks
Jim.
2008 Dec 19
1
megatec_usb: Ippon BackComfoPro (06da:0003 Phoenixtec Power)
...da:0003 Phoenixtec Power Co., Ltd". The
current SVN version of NUT does not work with this device. The
megatec_usb driver can't get a proper reply to a Q1 request, failing
with an error message about "short read (14 bytes)" instead.
I have found the reason for this. The function run_query in megatec.c
uses ser_get_line to get information from the UPS. The ser_get_line
function has an "endchar" parameter, and "\r" is currently passed
there. As a result, ser_get_line only returns the received characters
up to the first "\r" (hex 0d) back to run_query.
Th...
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...ormation
> about its power ratings.");
> ***************
> *** 318,323 ****
> --- 322,328 ----
>
> upsdebugx(1, "Asking for UPS status (\"Q1\" command)...");
> comm->send("Q1%c", ENDCHAR);
> + upsdebugx(4, "run_query: getting receive stuff, ignchars:
> %s", IGNCHARS);
> ret = comm->recv(buffer, RECV_BUFFER_LEN, ENDCHAR, IGNCHARS);
> if (ret < Q1_CMD_REPLY_LEN) {
> upsdebugx(1, "UPS doesn't return any information
> about its status.");...