def process_query_conditionally(self, query):
        if query._current_path:
            mapper, prop = query._current_path[-2:]
            key = prop.key

            for cls in mapper.class_.__mro__:
                if (cls, key) in self._relationship_options:
                    relationship_option = self._relationship_options[(cls, key)]
                    query._cache_region = relationship_option
                    break
Drop an existing composite
dataset/ETHPy150Open zzzeek/sqlalchemy/examples/dogpile_caching/caching_query.py/RelationshipCache.process_query_conditionally--crossover with--dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_type.py/CompositeToSqlTestCase.test_drop_composite