@twostraws.bsky.socialPaul Hudson @twostraws.bsky.social
2026-11-03 13:43 UTC
If you only need a count, don't fetch all the objects just to call .count on the result. fetchCount() does the work entirely in the database and is dramatically faster. www.hackingwithswift.com/quick-start/...
Link: How to count results without loading them - a free SwiftData by Example tutorial (www.hackingwithswift.com/quick-start/swiftdata/how-to-count…)
6 likes, 1 reposts, 0 replies
3 Next post4 More from @twostraws.bsky.socialBackBluesky home