Ancestors

Toot

Written by Leo Dion on 2025-01-08 at 17:11

If you followed my work on SwiftData and Concurrency, you'll be happy to know I've published the portion used in Bushel as a Swift Package.

Introducing DataThespian!

A thread-safe SwiftData implementation that uses the power of ModelActors to provide an optimized and type-safe database interface.

https://github.com/brightdigit/DataThespian

=> More informations about this toot | More toots from leogdion@c.im

Descendants

Written by Ben Scheirman on 2025-01-09 at 12:30

@leogdion I’m curious about the claim that you must use a single context for your entire app. With CoreData and SwiftData there are patterns where you may want to create a scratch context to do work (editable forms you can cancel, background data imports, etc.)

=> More informations about this toot | More toots from bens@mastodon.xyz

Written by Leo Dion on 2025-01-09 at 14:01

@bens I'm sure in CoreData but I don't believe that's supported in SwiftData yet.

If you create a model using one ModelContext the app will crash if you use a different one.

=> More informations about this toot | More toots from leogdion@c.im

Written by Ben Scheirman on 2025-01-09 at 14:40

@leogdion you can’t mix models, but you can pass around ids and refresh in a different context

=> More informations about this toot | More toots from bens@mastodon.xyz

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113793843938720069
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
264.642969 milliseconds
Gemini-to-HTML Time
1.475275 milliseconds

This content has been proxied by September (3851b).