Collection Format Different
Closed this issue · 5 comments
Hello,
I have collection which have following format:
class Account: Object {
@objc dynamic var GeoLocation: A360_M_Account_V2_GeoLocation?
}
class A360_M_Account_V2_GeoLocation: EmbeddedObject {
let coordinates = RealmSwift.List()
@objc dynamic var type: String? = nil
}
How to sort by distance with these kind of format??
Thanks in advance.
Why do you store coordinates as an array?
The coordinates should go separately as properties
We are using MOngoDB Realm serverless platform and in MongoDB, there is format like mentioned above.
I don't know how it works. This library works on "classic" Realm.
You must set two properties for latitude & longitude.
Any suggestion to Optimization??
Thanks
Is there no optimization, you must use separated properties
Sorry