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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:12:54+00:00 2026-06-17T09:12:54+00:00

I have an app that will generate lots of notes on a page. The

  • 0

I have an app that will generate lots of notes on a page.
The user can click anywhere on a page to create a quick note (ex Acrobat Pro)
These notes can be added and deleted with some line of javascript in a general <div id="notes">

<div id="notes">
    <div class="note" id="note-1"><input type="text" value="Some note"></div>
    <div class="note" id="note-2"><input type="text" value="Some note"></div>
    <div class="note" id="note-3"><input type="text" value="Some note"></div>
    <div class="note" id="note-4"><input type="text" value="Some note"></div>
    <div class="note" id="note-5"><input type="text" value="Some note"></div>
    <div class="note" id="note-6"><input type="text" value="Some note"></div>
    <div class="note" id="note-7"><input type="text" value="Some note"></div>
</div>

Would you say that it is a good idea to only store the markup of all the notes in the database instead of, in that case 7, 100 notes or more?
That was my original idea; is calling 1 huge field is better for performance than 100 or more with shorter content (the value of the input)?

  • 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-17T09:12:54+00:00Added an answer on June 17, 2026 at 9:12 am

    Having 1 huge field is just messy and doesn’t fit well into the RDBMS model. It’s more difficult just to look at the SQL data and make sense of it. You cannot index these types of fields, thus looking for a specific note takes very long. Insertions and deletions probably also take longer. You need specific functionality to handle splitting the data in this field.

    Having 100 rows instead … Well, that’s a lot more rows (though not much at all if you look at medium-sized databases), but if you only store the minimum data, and index correctly, you can end up with a structure that’s not much bigger or slower than a single field approach.

    Basically, you’ll need to think what you want to do with these notes. If the most common operation is just give me all notes, then you’re probably fine with a single field. As soon as you start doing lots of insertions, deletions and searches, the many rows will outperform the single field. For maintainability it may be better to just go with the many rows in either case (in case there is some change in requirements).

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

Sidebar

Related Questions

Background I have a web app that will create an image from user input.
I have a web app that will draw a polyline for each user (tracks
I have a simple app that will allow a user to tag a location.
I have an app that will show some images using UIImageView, now I want
I have an app that will have entries of both varchar(max) and varbinary(max) data
I have a main app that will have many plugins. Here is the PluginReader
I have a silverlight app that will be installed OOB with full trust and
I have an iPhone app that will incorporate liking / +1 with a global
I have a client that wants an app that will detect the persons location
I am developing a web app that will have two parts running on two

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.