领域移动平台 - 领域可以用作数据库吗? [英] realm mobile platform - can realm be used as a database?

查看:65
本文介绍了领域移动平台 - 领域可以用作数据库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的领域版本提供了新的云功能,用户可以在其中在所有设备之间同步数据.我想创建一个主数据库,所有用户都将他们的信息存储在这个数据库中,这样每个用户都可以访问其他用户信息.

With the new realm version there is new cloud capability, where users can sync their data between all of their devices. I want to create a Main database where all the users store their information in this database, so each user could access the other user information.

有办法吗?我的数据库将包含大量数据并且非常复杂(为每个用户存储数千张图片).

Is there a way to do it? My database is going to contain a lot of data and is going to be very complex (storing thousands of images for each users).

所以我希望能够访问数据库,但不将其下载到设备上并且不同步它(每次与设备无关的图像发生更改时,设备上的数据库都不会更改).

So I would like to be able to access the database, but not to download it to the device and not to sync it (the on device database will not change every time image that is not related to the device will change).

推荐答案

Realm-Database.但是,据我所知,新的 Realm 对象服务器提供的同步不是有条件的:要么同步整个数据库,要么不同步.此外,Realm离线优先,这意味着整个数据库在任何给定时刻都将在您的设备上.

Realm-Database. However, as far as I do understand, the synchronization offered by the new Realm Object Server is not conditional: you either sync the entire DB or you don't. Additionally, Realm is offline first, meaning that the entire DB will be on your device at any given moment.

这篇关于领域移动平台 - 领域可以用作数据库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆