Yaser Alraddadi
Yaser Alraddadi
it would be good. I had an issue with it, see this - #110
For now, I am using the low level ``` redis = self.db() args = [ "FT.SEARCH", Model.Meta.index_name, f"(@field_1:{{{self.pk}}}) (@field_2:{{value_2}})", "RETURN", "2", "$.field_3", "$.field_4", ] redis.execute_command(*args) ```
This will resolve it: ```python from pydantic.json import timedelta_isoformat class RestaurantVisit2(JsonModel): customer_pk: str = Field(index=True) registered_at: datetime.datetime = Field(title="Registered At") waiting_duration: datetime.timedelta = Field(title="Waiting Duration") class Config: json_encoders = {...
Not because the Optional, because there is no default value. if you make a default value it will work either with Optional or without it. Currently you have to make...
it is related to connector-x, since running with `cx.read_sql(conn, query)` cause also the issue here are the links of issues for connector-x https://github.com/sfu-db/connector-x/issues/26 and https://github.com/sfackler/rust-postgres/issues/60 for further lookup.
I am writing this comment, if you find this issue and looking for a workaround until it is supported. The issue in rust-postgres is from 2014. In the meantime I...
@imsnif what is the current progress on this?
Maybe also: - #9785
I am linking to this discussion: https://github.com/sqlalchemy/sqlalchemy/discussions/9795 to discuss maybe the overcome of some issues related to Dataclass and SQLAlchemy models
@sc68cal me too it consumes 38GB of RAM on my M1 ultra on real memory and memory around 50GB