We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue by pral2a Monday Jul 10, 2017 at 10:16 GMT Originally opened as https://github.com/OrganicityEu/organicity-discovery-api/issues/31
Count assets might have some issues and doesn't return the right number of assets
GET https://discovery.organicity.eu/v0/assets/geo/zoom/1?lat=43.45487000&long=-3.81289000
Model:
https://github.com/OrganicityEu/organicity-discovery-api/blob/16080f81d1913383a8f4cca0c2dcc0b6bbc92792/lib/mongo_orion_client.rb#L113
The text was updated successfully, but these errors were encountered:
This is the function: orion[:entities].find(q,m).count
orion[:entities].find(q,m).count
The q is a long list of {:$and=>[{"_id.id"=>{"$in"=>[/urn:oc:entity:experimenters:3c4*...
q
{:$and=>[{"_id.id"=>{"$in"=>[/urn:oc:entity:experimenters:3c4*...
And the cities at the end of the query:
... "urn:oc:entity:santander", "urn:oc:entity:london", "urn:oc:entity:aarhus", "urn:oc:entity:patras", "urn:oc:entity:patra"
The m is: {:skip=>0, :limit=>30, :sort=>"attrs.TimeInstant.value"}
m
{:skip=>0, :limit=>30, :sort=>"attrs.TimeInstant.value"}
How many assets should we expect?
Sorry, something went wrong.
Here quick refactoring that should help us simplify the problem but I haven't yet tested the code
de0648e
@viktorsmari Tomorrow we'll look at it
I tried those changes and the results are: On zoom level, the count went from: 0, 3929 -> 910 1, 6441 -> 3928 2, 7844 -> 3929 3, 8110 -> 3929 4, 8110 -> 3929 5, 8131 -> 3929
No branches or pull requests
Issue by pral2a
Monday Jul 10, 2017 at 10:16 GMT
Originally opened as https://github.com/OrganicityEu/organicity-discovery-api/issues/31
Count assets might have some issues and doesn't return the right number of assets
GET https://discovery.organicity.eu/v0/assets/geo/zoom/1?lat=43.45487000&long=-3.81289000
Model:
https://github.com/OrganicityEu/organicity-discovery-api/blob/16080f81d1913383a8f4cca0c2dcc0b6bbc92792/lib/mongo_orion_client.rb#L113
The text was updated successfully, but these errors were encountered: