Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Threads (0.19 sec)

  1. docs/fr/docs/async.md

        Si vous avez de bonnes connaissances techniques (coroutines, threads, code bloquant, etc.) et êtes curieux de comment **FastAPI** gère `async def` versus le `def` classique, cette partie est faite pour vous.
    
    ### Fonctions de chemin
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. docs/pt/docs/async.md

    Mas antes disso, controlar código assíncrono era bem mais complexo e difícil.
    
    Nas versões anteriores do Python, você poderia utilizar threads ou <a href="http://www.gevent.org/" class="external-link" target="_blank">Gevent</a>. Mas o código é um pouco mais complexo de entender, debugar, e pensar sobre.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/sql-databases-peewee.md

        This was useful in older frameworks designed to have one single thread per request, no more, no less.
    
        Using this, each request would have its own database connection/session, which is the actual final goal.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  4. docs/en/docs/async.md

    But before that, handling asynchronous code was quite more complex and difficult.
    
    In previous versions of Python, you could have used threads or <a href="https://www.gevent.org/" class="external-link" target="_blank">Gevent</a>. But the code is way more complex to understand, debug, and think about.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  5. docs/de/docs/async.md

    Davor war der Umgang mit asynchronem Code jedoch deutlich komplexer und schwieriger.
    
    In früheren Versionen von Python hätten Sie Threads oder <a href="https://www.gevent.org/" class="external-link" target="_blank">Gevent</a> verwenden können. Der Code ist jedoch viel komplexer zu verstehen, zu debuggen und nachzuvollziehen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:06:16 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/sql-databases.md

    ```
    
    #### 注意
    
    参数:
    
    ```Python
    connect_args={"check_same_thread": False}
    ```
    
    ...仅用于`SQLite`,在其他数据库不需要它。
    
    !!! info "技术细节"
    
        默认情况下,SQLite 只允许一个线程与其通信,假设有多个线程的话,也只将处理一个独立的请求。
    
        这是为了防止意外地为不同的事物(不同的请求)共享相同的连接。
    
        但是在 FastAPI 中,普遍使用def函数,多个线程可以为同一个请求与数据库交互,所以我们需要使用`connect_args={"check_same_thread": False}`来让SQLite允许这样。
    
        此外,我们将确保每个请求都在依赖项中获得自己的数据库连接会话,因此不需要该默认机制。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  7. docs/es/docs/async.md

    Pero antes de eso, manejar código asíncrono era bastante más complejo y difícil.
    
    En versiones anteriores de Python, podrías haber utilizado <abbr title="En español: hilos.">threads</abbr> o <a href="https://www.gevent.org/" class="external-link" target="_blank">Gevent</a>. Pero el código es mucho más complejo de entender, depurar y desarrollar.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  8. docs/tr/docs/async.md

    ## Çok Teknik Detaylar
    
    !!! warning
        Muhtemelen burayı atlayabilirsiniz.
    
        Bunlar, **FastAPI**'nin altta nasıl çalıştığına dair çok teknik ayrıntılardır.
    
        Biraz teknik bilginiz varsa (co-routines, threads, blocking, vb)ve FastAPI'nin "async def" ile normal "def" arasındaki farkı nasıl işlediğini merak ediyorsanız, devam edin.
    
    ### Path fonksiyonu
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/sql-databases.md

    #### 🗒
    
    ❌:
    
    ```Python
    connect_args={"check_same_thread": False}
    ```
    
    ...💪 🕴 `SQLite`. ⚫️ 🚫 💪 🎏 💽.
    
    !!! info "📡 ℹ"
    
        🔢 🗄 🔜 🕴 ✔ 1️⃣ 🧵 🔗 ⏮️ ⚫️, 🤔 👈 🔠 🧵 🔜 🍵 🔬 📨.
    
        👉 ❎ 😫 🤝 🎏 🔗 🎏 👜 (🎏 📨).
    
        ✋️ FastAPI, ⚙️ 😐 🔢 (`def`) 🌅 🌘 1️⃣ 🧵 💪 🔗 ⏮️ 💽 🎏 📨, 👥 💪 ⚒ 🗄 💭 👈 ⚫️ 🔜 ✔ 👈 ⏮️ `connect_args={"check_same_thread": False}`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 25.2K bytes
    - Viewed (1)
  10. docs/ru/docs/async.md

    Пользователей очень много, но ваш сервер всё равно вынужден ждать 🕙 запросы по их слабому интернет-соединению.
    
    Потом снова ждать 🕙, пока вернётся ответ.
    
    <!--https://forum.wordreference.com/threads/%D0%9D%D0%BE-%D0%B5%D1%81%D0%BB%D0%B8.3258695/-->
    Это ожидание 🕙 измеряется микросекундами, но если всё сложить, то набегает довольно много времени.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 39.9K bytes
    - Viewed (0)
Back to top