← Back to team overview

pyax team mailing list archive

[Bug 317723] Re: pyax fails to return when result set contains a lot of data

 

On 2nd thought, something like this might work a bit better.

        sobject_records, done, query_locator = self._unpackQueryResult(query_result)
        sobject_records = sobject_records if (isinstance(sobject_records,list)) else [sobject_records]
        while not done:
            records, done, query_locator = self._unpackQueryResult(query_result)
            sobject_records.extend(records)

Notice sobject_records seems to want to be a list ([]) but when the
original code fails sobject_records is a "dict" not a "list".

Just looking for a solution.

On a side note - the result set contains a lot of data in the result set
due to a field coming back from the Attachment object that contains a
ton of base64 encoded data.

-- 
pyax fails to return when result set contains a lot of data
https://bugs.launchpad.net/bugs/317723
You received this bug notification because you are a member of pyax
Developers, which is the registrant for pyax.



References