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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:20:34+00:00 2026-06-02T11:20:34+00:00

I am planning to store a json_encoded string on my database. I can’t precisely

  • 0

I am planning to store a json_encoded string on my database. I can’t precisely tell the length its going to be, but I’m pretty sure it will be long. My concern is which field type I am going to use for this, is it blob or text?

I prefer the one where I can save space as much as possible over fast searching, in any case I have other column where I should just index.

  • 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-02T11:20:36+00:00Added an answer on June 2, 2026 at 11:20 am

    blob is usually for things like images, binaries etc. text should be good enough for your case, or you can use longtext which has even bigger space capacity if that’s really a concern.

    Searching-wise, since you are storing json_encode‘d stuff, you’ll still need to call json_decode on it anyway for it to be useful in your application, I don’t think choice of datatype matters in this case.

    A better way is to normalize your database design instead of storing related stuff in one big string of json.

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

Sidebar

Related Questions

I'm planning to store player stats in a database for a game, and need
How can I store a video (either in database or file system) so that
I am planning a relational database to store poker game data (like what would
I am planning to build a cassandra store system and also I need a
I have a planning structure on two tables to store available slots by day,
im planning to make a Simple Screen transition Dashboard. I am going to make
I am planning to store a password in my Native app (Android and iPhone).
I've begun planning a kind of web store interface that I want to work
I have been planning to try to build a shopping store with Drupal 7
I'm planning to use cloud storage in my WP7 app. Can I use Skydrive

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.