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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:29:50+00:00 2026-05-26T18:29:50+00:00

I am planning to store sitemaps with related data per url wanted to know

  • 0

I am planning to store sitemaps with related data per url

wanted to know which is better :

  1. creating new table per user / website

  2. for each website, save all urls (with its data or in separate column) as an array in 1 row

  3. save each url as separate row with the main website as identifier

Explained:

  1. each user will have his own table, with all urls in their own rows

  2. table will have columns: id, user, website, urls

for all urls of same site, it will save them as an array next to that particular website and user

  1. same columns, but each sitemap will create many rows with 1 url per row
  • 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-05-26T18:29:51+00:00Added an answer on May 26, 2026 at 6:29 pm

    A good Design would look like this:

    Table 1 (User -> Websites one to many relation):

    User (PK) |  Website (FK)
    

    Table 2 (Website -> URLs one to many relation):

    Website (PK) | URL
    

    PK = Primary Key
    FK = Foreign Key

    I think this is similar to your option 3 except or the separation into two tables to not store redundantly which user a website belongs to in every row.

    You also may want to make a Websites table that just stores associates a website to an id:

    Website Id (PK) | URL    
    

    Where you store the main URL of the website in this table, like “stackoverflow.com and then store relative urls in the (Website -> URL) relation table like “questions/8116983/which-is-better-using-multiple-rows-tables-or-arrays-in-mysql.

    Then you would use Website Id’s in Table 1 and 2 as well instead of Websites.

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

Sidebar

Related Questions

Since bz2 is splittable and saves space, I'm planning to store the table data
I'm planning to generate a huge amount of data, which I'd like to store
I am planning to store like 5 TB data in a table. Following is
In my android app, i'm planning to store data locally to reduce data usage
I'm planning to use Serialization to save the Bean modified by user--to store the
I am planning to store some data in a listproperty and want to be
I am planning to use http://www.objis.com/formationextjs/lib/extjs-4.0.0/docs/api/Ext.data.Store.html to store a table and filter the data...
I am planning a relational database to store poker game data (like what would
I'm new to Microsoft SQL. I'm planning to store text in Microsoft SQL server
We are planning to store millions of documents in MongoDB and full text search

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.