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 8876667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:16:03+00:00 2026-06-14T19:16:03+00:00

I am creating a SQLite database for location data. There about 10 million rows

  • 0

I am creating a SQLite database for location data. There about 10 million rows and I want to get the SELECT statements as fast as possible.

I will only have to publish the database once and I dont care how long the creation phase will take.

The user will only be looking at one part of a map at once, therefore the data that geographically is close to each other needs to be accessed at the same time.

I have split my data into several tiles. Each tile corresponds to a region of latitude & longitude based on open street map tiles

My questions is, for the fastest lookup time, should I:

  1. Have several databases, one databases per tile, OR
  2. Have one database, containing several tables, one table per tile, OR
  3. Have one big database with just one table, because splitting the data will not make search any faster.

I could just try each way, but I would really like to understand the solution.

  • 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-14T19:16:04+00:00Added an answer on June 14, 2026 at 7:16 pm

    If you have several databases or several tables, your code has to find out which one to search before doing the actual search query.
    Furthermore, if the search window overlaps two tiles, you have to do two searches and merge the results.
    Additionally, splitting doesn’t help you with the search inside one tile.

    To do geographic searches, you should use a two-dimensional index like an R-tree.
    When you are doing that, searches are automatically restricted to the appropriate parts of the data, so using one table is both simplest and fastest.

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

Sidebar

Related Questions

I'm often creating interesting SQL statements for my SQLite database. Is it possible to
I am creating a SQLite database. To get data from the table I am
I'm creating a dictionary app. My Sqlite database is about 15MB and on the
I am creating a sqlite database in temp folder. Now I want to copy
I'm creating a caching system to take data from an SQLite database table using
I'm creating a SQLite database where it is possible to make entries for a
I'm creating a application that will fetch data from an SQLite database and display
I'm creating a simple app that stores data into a sqlite database and retrieves
I am creating a web application that is accessing a SQLite database in the
I am creating a system that will store objects in an SQLite Database. I

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.