Skip to content

Commit

Permalink
docs: 📝 add performance warning in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
dubusster committed May 14, 2024
1 parent 6ac6319 commit e0d265a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fastcrud/crud/fast_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ async def upsert(
return_as_model: bool = False,
) -> Union[BaseModel, Dict[str, Any], None]:
"""Update the instance or create it if it doesn't exists.
Note: This method will perform two transactions to the database (get and create or update).
Args:
db (AsyncSession): The database session to use for the operation.
Expand Down

0 comments on commit e0d265a

Please sign in to comment.