Sign in
There are a total of 2 posts.
2025-05-07
比較 Django QuerySet 的 .only() 和 .values() 方法的差異及使用方法,了解各自的優點和使用時機,學習性能優化的選擇方法。
Django的 .values() 方法提供選擇特定字段返回QuerySet的功能,並且對性能優化非常有用。了解 .values_list() 和使用方法的區別。