[Zope] SQL Methods being called more than once

Jerry Spicklemire jerry@spicklemire.com
Thu, 02 Mar 2000 14:23:12 -0500


It looks like you are indeed running the query multiple times. Unless you
are changing the data at some point internal to the process, which would
require your to "refresh" the results in order to have current data, you
could try:

<dtml-in sqlMethod query=start_query>
Do some stuff
Do some more stuff
Do even more stuff
</dtml-in>

Youd be "recycling" the result set, and sparing the DB backend.