- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for read_slow_users (0.12 sec)
-
docs_src/sql_databases_peewee/sql_app/main.py
items = crud.get_items(skip=skip, limit=limit) return items @app.get( "/slowusers/", response_model=List[schemas.User], dependencies=[Depends(get_db)] ) def read_slow_users(skip: int = 0, limit: int = 100): global sleep_time sleep_time = max(0, sleep_time - 1) time.sleep(sleep_time) # Fake long processing request users = crud.get_users(skip=skip, limit=limit)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 2.2K bytes - Viewed (0)