News for hackers. Stuff that matters.
Re:Introducing Realm Xamarin: A Reactive Database for .NET by fealebenpae on Tuesday May 10, 2016 @12:19PM (#11668316)
Hey, Yavor on the Realm team here. A reactive database allows you to structure your code so that you "react" to changes in your data layer - you don't have to re-run queries to get updates, because Realm updates all your data objects to point to the newest version of your data. Check out the sample code in your blog post: https://realm.io/news/introducing-realm-xamarin
Re:Introducing Realm Xamarin: A Reactive Database for .NET by nbevans on Tuesday May 10, 2016 @06:38PM (#11671255)
I don't get it. The sample is re-running the Count() call. A reactive design would post an event.
Re:Introducing Realm Xamarin: A Reactive Database for .NET by fealebenpae on Wednesday May 11, 2016 @02:48AM (#11673092)
The core of Realm tracks writes across different threads and processes and that's how we know to update the result objects without rebuilding the query or rebinding the model objects. There is a PR to actually expose this as a high-level notifications API and we'll roll it out in our next Realm Xamarin release: https://github.com/realm/realm-dotnet/pull/502/commits/f4169.... Using that it will be possible to implement INotifyCollectionChanged and IObservable directly on top of Realm.
Re:Introducing Realm Xamarin: A Reactive Database for .NET by fealebenpae on Tuesday May 10, 2016 @12:45PM (#11668551)
Derp. your blog post should read the blog post.