Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 746 Bytes

orm.md

File metadata and controls

13 lines (7 loc) · 746 Bytes

Due to Django's ORM design, database queries must be deferred using hooks. Otherwise, you will see a #!python SynchronousOnlyOperation exception.

These #!python SynchronousOnlyOperation exceptions may be removed in a future version of Django. However, it is best practice to always perform IO operations (such as ORM queries) via hooks to prevent performance issues.

By default, automatic recursive fetching of #!python ManyToMany or #!python ForeignKey fields is enabled within the django_query_postprocessor. This is needed to prevent #!python SynchronousOnlyOperation exceptions when accessing these fields within your ReactPy components.