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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:58:19+00:00 2026-06-03T02:58:19+00:00

I need to build a table that will contain a large BLOB that will

  • 0

I need to build a table that will contain a large BLOB that will take up 98% of the row size. However, this BLOB will only be kept temporarily in the row and will be moved to another location and then the BLOB column will be set to NULL. Can MySQL reuse this space or will it always be part of the row? If it can not be automatically re-used, is there another way (say an optimize table) that I can use to manually reclaim this space? If not, I may need to find another solution for handling this particular set of data.

  • 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-03T02:58:20+00:00Added an answer on June 3, 2026 at 2:58 am

    Sounds like you will definitely be better off using Redis or even just storing your blob on the file system. This is in fact what I recommend; save the data on a file and place the filename on the table. After async upload to s3 has completed set it to null. If you are using a file system optimized to handle large objects, this will always be faster than an insert into a database.

    How exactly blobs are stored depends not just on the length of the data but also on the version of mysql that you are actually using. Deleted rows can always be reused and when subsequent inserts don’t reuse the space, it can be recovered with optimize table. But optimize table will take a lock on that table. So you are slowing down the system a second time.

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

Sidebar

Related Questions

I need to build a class that will represent a row in some table
I need to build a SQLite table that will consist of the following columns:
I need to build a table for some new components that will keep track
I would need to build a html table that has a horizontally scrollable column.
So I have this SQL table that I need to update. Now we use
I am trying to build a drop-down menu that will show a row to
I need to store a large table (several millions or rows) that contains a
I am trying to build a data table structure that will best support the
I need to build a query that will show me records that are in
I need to build something that starts serving a H.264 encoded video to a

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.