I'm attempting to write a script to fetch certain data from an existing PostgreSQL database with SQLAlchemy. All operations will be read-only (i.e. only SELECT operations), if that matters.
My understanding is that in order to work with an existing database I need to reflect it.
self.engine = create_engine(f"postgresql+psycopg2://{self.conn_str}")
self.metadata = MetaData(bind=self.engine)
MetaData.reflect(self.metadata)
When I run this I get a bunch of warnings from MetaData.reflect():
SAWarning: Skipped unsupported reflection of expression-based index idx_users_email_lower
Should I define these indices somehow, or how do I deal with this? Will my querying be slow if the indices are unsupported?