[英]Is something like MacFUSE possible within iOS apps?
I'd like to have virtual files in an iOS app, so I can use [NSData dataWithContentsOfURL:]
to have a NSData (and a pointer to the bytes eventually) of a large table that I do not want to store on disk, but rather compute parts of when needed.我想在 iOS 应用程序中有虚拟文件,所以我可以使用
[NSData dataWithContentsOfURL:]
来拥有一个我不想存储在磁盘上的大表的 NSData(以及最终指向字节的指针),但是而是在需要时计算部分。
Any other approach to solving this problem is welcome!欢迎任何其他解决此问题的方法!
I would recommend rather than thinking of the connection to your "large" table as a persistent one, you should think of it as a queryable service.我建议不要将与“大”表的连接视为持久表,而应将其视为可查询的服务。
I recommend the use of something like REST, and your iOS app queries the REST service.我建议使用 REST 之类的东西,并且您的 iOS 应用程序会查询 REST 服务。
In the long run makes lots of things really flexible.从长远来看,使很多事情变得非常灵活。
Also allows you to centralise a lot of the logic on the server side, this means you can use caching techniques to improve performance, something your iOS app would have had to do.还允许您在服务器端集中大量逻辑,这意味着您可以使用缓存技术来提高性能,这是您的 iOS 应用程序必须做的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.