Full support for Query Generations (iOS 10 onwards) #121

Closed
opened 2025-12-29 15:24:56 +01:00 by adam · 2 comments
Owner

Originally created by @JohnEstropia on GitHub (Jan 20, 2017).

(see NSManagedObjectContext.setQueryGenerationFromToken(.currentQueryGenerationToken))

Possible features:

  • Mark query generation tokens per transaction (no more faulting, possibly more efficient importing)
  • Potential for struct-based models (since data from snapshots are fixed)
  • Biggest potential: Dynamic entity model generation through reflection (use structs/non-NSManagedObject classes instead), plus complete independence from .xcdatamodeld files
Originally created by @JohnEstropia on GitHub (Jan 20, 2017). (see `NSManagedObjectContext.setQueryGenerationFromToken(.currentQueryGenerationToken)`) Possible features: - Mark query generation tokens per transaction (no more faulting, possibly more efficient importing) - Potential for struct-based models (since data from snapshots are fixed) - Biggest potential: Dynamic entity model generation through reflection (use structs/non-NSManagedObject classes instead), plus complete independence from .xcdatamodeld files
adam added the enhancementabandoned labels 2025-12-29 15:24:56 +01:00
adam closed this issue 2025-12-29 15:24:56 +01:00
Author
Owner

@JohnEstropia commented on GitHub (Jan 23, 2017):

Query Generations still looks iffy :( https://forums.developer.apple.com/message/186722#186722

Prioritize:

  • Dynamic entity model generation through reflection (use structs/non-NSManagedObject classes instead), plus complete independence from .xcdatamodeld files
  • opt-in struct-based models (copied, non-faulting data)
@JohnEstropia commented on GitHub (Jan 23, 2017): Query Generations still looks iffy :( https://forums.developer.apple.com/message/186722#186722 Prioritize: - Dynamic entity model generation through reflection (use structs/non-NSManagedObject classes instead), plus complete independence from .xcdatamodeld files - opt-in struct-based models (copied, non-faulting data)
Author
Owner

@JohnEstropia commented on GitHub (Jul 23, 2017):

I'm closing this feature as it turns out Query Generations aren't that reliable (yet) and the struct-based models are memory hogs (no lazy properties)

@JohnEstropia commented on GitHub (Jul 23, 2017): I'm closing this feature as it turns out Query Generations aren't that reliable (yet) and the struct-based models are memory hogs (no lazy properties)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#121