Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7872493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:12:49+00:00 2026-06-03T02:12:49+00:00

Our team is currently working on some killer ios location app that we fear

  • 0

Our team is currently working on some killer ios location app that we fear “explode” in a good way, so we want to put effort thinking about scalability and Availability.

After we read that draw something is based on couchbase NoSQL, we scanned the couch base api (specifically the .net one) and found solutions to all of our app requirements except one, and we describe the scenario:

  1. Let’s say we have order of 1,000,000 users around the world, with their location specified by longitude and latitude;
  2. We have a user circle range c: it’s location (specified by longitude and latitude) and a radius rc
  3. We want to efficiently determine which of the users are in the circle.

If we write it in sql server as we did now it’s something like this:

CREATE TABLE UserLocations
[UserId] [bigint] NOT NULL,
[CurrentLocation] [geography] NOT NULL

ALTER PROCEDURE sp_GetCurrentUsersInRange
@userPoint geography, 
@RangeInMeters int
AS
BEGIN

select  UserId from UserLocations
where @userPoint.STDistance(CurrentLocation) <= @RangeInMeters
and UserId <> @userId

END

But this is NoSQL, there are only keys (such as longitude key and latitude key), but we can’t fetch all the values and query them all in memory
, can’t we?

So the question to you is:
Is there a way you know how to accomplish such thing in NoSQL?

Thank you

p.s. our related question in Stackoverflow: How to determine n locations inside a circle efficiently?

EDIT:
Couchbase support had answered me!
their answer as quoted:

“Our geo-spatial indexing is a feature being debuted in 2.0 (scheduled out later this year) as experimental and will move to fully supported in a later release. We are also in the process of building the necessary client-side interfaces for it, but there is nothing available at the moment.
Lastly, the distance and bounding circle (among others) are features that we will develop as we move forward.”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:12:51+00:00Added an answer on June 3, 2026 at 2:12 am

    I’m unaware of doing it with couchbase, but MongoDB has geospatial indexing.

    http://www.mongodb.org/display/DOCS/Geospatial+Indexing

    EDIT Looks like Couch has GeoSpatial as well, through GeoCouch. http://www.couchbase.com/docs/couchbase-geocouch-guide/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team is currently working on a large project which makes heavy use of
My team and I are working on several projects that collectively depend on some
Our team is currently working on completely redesigning our school's website and one of
Currently our team of 11 people is working on a project on asp.net platform.
Our team is currently brainstorming a product idea that's been on the tip of
We (small team) currently have our Visual Studio projects on a network drive (no
Currently our dev team uses this pattern, but I can't help but wonder if
Our development team uses Eclipse + Aptana to do their web development work. Currently,
We are currently setting up Team Build 2010 for our company, and I am
Our team has just started developing for the Sitecore CMS. We find that after

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.