Closed MichaelAquilina closed 10 years ago
When dealing with queries that have a short query
time but very large fetch
time (because of a large amount of data being sent back) it is more efficient to make use of SSCursor which retrieves data one at a time using the following syntax:
sscur.execute("""...""")
for row in sscur:
dosomething()
Do not use fetchall as it completely defeats the purpose of using an SSCursor. This information is based on the reply of this stackoverflow post
SQL filtering is very fast with the large number of indexes in use. However due to the large volume of information that comes through, fetching performance is lacking.
This can probably be performed by: