The problem is that some ORMs return memoryview which are more efficient but are not supported by pydantic at the moment.