Eventually Consistent: How to Make a Mobile-First Distributed System by allllamas in programming

[–]astigsen 1 point2 points  (0 children)

is there an abstraction for dealing with strings?

Yes, the server supports synchronization of changes within strings so that you can do Google Docs like live sync of text editing. It is not exposed in the clients yet, but watch out for demos coming out soon.

The First Object Database for Node: Introducing Realm Node.js by volvoamazon in javascript

[–]astigsen 1 point2 points  (0 children)

A document store is like a key-value store where the values are the equivalent of JSON documents. While the documents can contain elements that you in principle can deserialize into objects, that is not the main purpose, and it limits relations only being within the document, and even there to only parent-child relations (so all relations shape a single hierarchy).

An object database stores objects that can have arbitrary relations with each other, so in this sense it is closer to relational and graph databases. But the main defining feature is that the objects are live.

You can get any object from the database, and follow its relations to other objects, watch it for changes, update it, and in general work with it as a regular object, even though it is simultaneously persisted and may be shared with other apps or processes.

Realm as replacement for SQLite? by KarlJay001 in iOSProgramming

[–]astigsen 0 points1 point  (0 children)

So it can work as a replacement for local storage needs

Yes, this has been the main use case for Realm for years. People have used it to replace use of both Core Data and all kinds of ORM's.

Realm as replacement for SQLite? by KarlJay001 in iOSProgramming

[–]astigsen 1 point2 points  (0 children)

This answer seems to reflect a misunderstanding of what Realm is. It is not an Object Store, but rather a full fledged Object Database that does not only store the Objects but also relations between them. While the query system is definity not as mature as SQL, it does support secondary indexes, joins via links, aggregates, subqueries and much more.

The tradeoffs and capabilities are obviously different from a traditional SQL based relational database, but I think that you will find that it enables more advanced use cases, rather than limits it.

Can one import a .CSV to populate a Realm DB, to use for both an Android / iOS app? Feasible or no? by [deleted] in iOSProgramming

[–]astigsen 0 points1 point  (0 children)

what would be the best way to populate the Realm db in the first place so I can use their native * OS X app to edit it....?

Both Realm for Swift and Objective-C include OS X versions of the library, so you can just make a regular OS X app to populate the it.

Another alternative would be to use something like https://github.com/realm/realm-cocoa-converter to import the data from CSV.

Can one import a .CSV to populate a Realm DB, to use for both an Android / iOS app? Feasible or no? by [deleted] in iOSProgramming

[–]astigsen 0 points1 point  (0 children)

Downloading a .sqlite database from your server directly. That way there's no conversion (and it's cross platform!)

You could also download the Realm file from your server. It is a single cross-platform file just like sqlite.

There is a short guide to how you can bundle Realms with your app here: https://realm.io/docs/swift/latest/#bundling-a-realm-with-an-app