def merge_result(self, iterator, load=True):
    "Merge a result into this :class:`.Query` object's Session.\n\n        Given an iterator returned by a :class:`.Query` of the same structure\n        as this one, return an identical iterator of results, with all mapped\n        instances merged into the session using :meth:`.Session.merge`. This\n        is an optimized method which will merge all mapped instances,\n        preserving the structure of the result rows and unmapped columns with\n        less method overhead than that of calling :meth:`.Session.merge`\n        explicitly for each value.\n\n        The structure of the results is determined based on the column list of\n        this :class:`.Query` - if these do not correspond, unchecked errors\n        will occur.\n\n        The 'load' argument is the same as that of :meth:`.Session.merge`.\n\n        For an example of how :meth:`~.Query.merge_result` is used, see\n        the source code for the example :ref:`examples_caching`, where\n        :meth:`~.Query.merge_result` is used to efficiently restore state\n        from a cache back into a target :class:`.Session`.\n\n        "
    return loading.merge_result(self, iterator, load)
Merge a result into this :class:`.Query` object's Session.

Given an iterator returned by a :class:`.Query` of the same structure
as this one, return an identical iterator of results, with all mapped
instances merged into the session using :meth:`.Session.merge`. This
is an optimized method which will merge all mapped instances,
preserving the structure of the result rows and unmapped columns with
less method overhead than that of calling :meth:`.Session.merge`
explicitly for each value.

The structure of the results is determined based on the column list of
this :class:`.Query` - if these do not correspond, unchecked errors
will occur.

The 'load' argument is the same as that of :meth:`.Session.merge`.

For an example of how :meth:`~.Query.merge_result` is used, see
the source code for the example :ref:`examples_caching`, where
:meth:`~.Query.merge_result` is used to efficiently restore state
from a cache back into a target :class:`.Session`.
def merge_result(self, iterator, load=True):
    "Merge a result into this :class:`.Query` object's Session.\n\n        Given an iterator returned by a :class:`.Query` of the same structure\n        as this one, return an identical iterator of results, with all mapped\n        instances merged into the session using :meth:`.Session.merge`. This\n        is an optimized method which will merge all mapped instances,\n        preserving the structure of the result rows and unmapped columns with\n        less method overhead than that of calling :meth:`.Session.merge`\n        explicitly for each value.\n\n        The structure of the results is determined based on the column list of\n        this :class:`.Query` - if these do not correspond, unchecked errors\n        will occur.\n\n        The 'load' argument is the same as that of :meth:`.Session.merge`.\n\n        For an example of how :meth:`~.Query.merge_result` is used, see\n        the source code for the example :ref:`examples_caching`, where\n        :meth:`~.Query.merge_result` is used to efficiently restore state\n        from a cache back into a target :class:`.Session`.\n\n        "
    return loading.merge_result(self, iterator, load)