> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Performance

> **len-all-count**
>
> Using QUERY.count() instead of len(QUERY.all()) sends less data to the client since the SQLAlchemy method is performed server-side.

> **batch-import**
>
> Rather than adding one element at a time, consider batch loading to improve performance.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.