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

  • SEARCH
  • Home
  • 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 8541813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:54:58+00:00 2026-06-11T11:54:58+00:00

Well I want your opinions about this case: I need a database that will

  • 0

Well I want your opinions about this case:

I need a database that will have… two or three tables at most, one of them will have points (latitude, longitude) and some other info.

It’s really simple what I need: Get the points within a given radius.

I’m not asking how to do it (but any advice is more than welcome, specially if it’s about good practices), I want to know if making use of the MySQL’s spatial support would help. Since what I need is fairly easy to get with just one query, what I expect by using Spatial support is to increase performance.

So, are the spatial indexes going to help noticeably? I don’t think the table will store that many points. I’d say no more than 200.

  • 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-11T11:54:58+00:00Added an answer on June 11, 2026 at 11:54 am

    If it’s really only 200 points, I recommend you do without: This makes it much easier to write portable SQL (which I consider an important thing).

    Write your SQL so, that first longitued and latitude are checked against the precalculated mins and maxes (giving you a rectangle), then check for the radius. This way, you will only need to calculate the radius without finally selecting the point for 1/pi of the result set.

    I personally consider this an acceptable tradeof against writing SQL, that could if must be executed against SQlite or whatever.

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

Sidebar

Related Questions

Well this is a simple question i want to filter two elements sorted reverse
I want to hear your opinion about program life monitoring. This is the scenario.
Well I want to render a self closing tag say <img> tag like this
I want to be able to read any well-formed RSS/ATOM file. That would mean
Well, this is what I want to do in my app: I would like
Well the title is quite self explanatory. I want to build two panels one
Preface: This is not much about how to structure code within files. I have
I want to know your opinion about using data-aware components in projects. Which are
well I want to debug some script with Firebug, (cause I can't see anything
Well, i want house image to rotate from -5° to 5° and i wrote

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.