mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-29 22:22:55 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Rules for optimizing performance in FastAPI applications, including asynchronous operations and caching.
|
||||
globs: **/*.py
|
||||
---
|
||||
- Minimize blocking I/O operations; use asynchronous operations for all database calls and external API requests.
|
||||
- Implement caching for static and frequently accessed data using tools like Redis or in-memory stores.
|
||||
- Optimize data serialization and deserialization with Pydantic.
|
||||
- Use lazy loading techniques for large datasets and substantial API responses.
|
||||
- Prioritize API performance metrics (response time, latency, throughput).
|
||||
- Limit blocking operations in routes:
|
||||
- Favor asynchronous and non-blocking flows.
|
||||
- Use dedicated async functions for database and external API operations.
|
||||
Reference in New Issue
Block a user