Hi, I'm using Langchain SQLDatabase to wrap with actual SQL database connection, but creating SQLDatabase object takes long time, over 2m sometimes. Is there any way to make it faster? Seems only creating SQLDatabase object takes a long time. Without creating this object, just create SQLAlchemy engine to connect to db is really fast. Why creating Langchain SQLDatabase object takes such a long time? Is there any way to faster it?
@jerryjliu0 I checked if I don't create SQLDatabase object, but just creating sql alchemy to connect to azure sql db, it's fast. But creating this SQLDatabase object takes a long time.
@jerryjliu0 I'm trying to see if I can create sql index to let LLM generate sql query without creating this object, but seems it can not be avoided. So just would like to see if I'm not configuring correctly? Or why this object creation takes a long time.