简体   繁体   English

报告领域中持有的信息

[英]Reporting on information held in Realms

Am a little new to using Realm, but learning fast. 使用Realm有点陌生,但学习速度很快。 I've seen that when using the Realm object server the default setting is that a new Realm is created for each new user. 我已经看到,使用Realm对象服务器时,默认设置是为每个新用户创建一个新的Realm。 I also see that with quite some effort a Global realm can be created and permissions given to it, so that many users can access that realm. 我还看到,只需付出一些努力,就可以创建全局领域并为其授予权限,以便许多用户可以访问该领域。 As I'm working on an app where users create orders, then the first approach seems more secure; 当我在开发用户创建订单的应用程序时,第一种方法似乎更安全; each user would have access only to the orders created in that users Realm. 每个用户只能访问在该用户领域中创建的订单。

My question is, in this situation how would I be able to report on total order information across users eg total order quantities/amounts for September for all orders taken? 我的问题是,在这种情况下,我如何能够报告用户之间的总订单信息,例如,所有已接订单的9月份的总订单数量/金额? I haven't been able to find any reporting system or information about this. 我找不到任何报告系统或有关此的信息。 Any advice or hints & tips that would help me solve this would be really appreciated. 任何能帮助我解决此问题的建议或提示与技巧将不胜感激。

So after making many checks and hearing back from the guys at Realm, it seems that it is not currently possible to get summary info across Realms. 因此,在进行了许多检查并听取了Realm的人员的反馈后,似乎目前无法在Realms上获取摘要信息。 One solution suggested would be to create a "summary" realm and write total info to is as Im creating the other realms, which doesn't sound like a good solution. 建议的一种解决方案是创建一个“摘要”领域,并将全部信息写入其中,就像Im创建其他领域一样,这听起来并不是一个好的解决方案。 So the only solution currently, that will allow you to get summary information across eg orders for different people, is to store the information in one Global Realm and set the permissions so that all users can access it. 因此,当前唯一的解决方案使您可以跨不同人员的订单获取摘要信息,例如,将信息存储在一个Global Realm中并设置权限,以便所有用户都可以访问它。 A final note, Realm have told me that they plan to bring out an enhancement, that will help solve this issue, by letting you set securities for users within Global Realms. 最后一点,Realm告诉我,他们计划通过允许您为Global Realms中的用户设置证券来推出增强功能,这将有助于解决此问题。 Hopefully that comes out soon :-) 希望很快就会出现:-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM