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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:11:44+00:00 2026-06-04T01:11:44+00:00

I am trying to build a local database for android. I am a little

  • 0

I am trying to build a local database for android. I am a little lost.

The app is a document management app.. I need to save the following…

Document
--------
Id
import date
List<DocTags>
extension 
etc

then I have a number of docTags that have different information

Location
-------
id
name
lat
long

Company
------
Id
name
Street
town

around 10 other doc types.

I realise I need a table to store all the docTag ids that are assigned to a document but these relate to lots of different tables. My problem is that I need to retrieve a list of documents by searching for the doctag Id or multiple doctag ids. We need to assume we have 10,000 documents of more which could equate to 40,000 doc tags. So performance is a major issue. What is the best way to structure the database?

I will also need to search the doctag names.

Thanks

  • 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-04T01:11:46+00:00Added an answer on June 4, 2026 at 1:11 am

    I’d have a many to many JOIN table relating Document to Tag.

    I would not have those tags in multiple tables. That breaks first normal form. If other tables need to refer to Tag rows, give them JOIN tables as well.

    Your comments below suggest that either a normalization refresher is necessary or that a relational model might not be the best choice for your problem. Perhaps a NoSQL, document based solution would fit better.

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

Sidebar

Related Questions

I'm trying to build an android app that would do a local search on
I'm trying build an App Engine connected Android application and am having some problems
We are trying to build an app with Facebook Connect on the local server.
I'm trying to build a local version of the freebase search api using their
I'm currently trying to build a provisioning service of a kind for a local
I'm trying to build an app to work with twitter like site , and
I'm trying to make my project build file include a local build file, to
I'm trying to use hibernate to build up a local cache of data that
I am new to Symfony, trying to create a database structure through build-model then
I am getting the following error trying to connect to a local DB2 instance

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.