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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:19:49+00:00 2026-05-16T18:19:49+00:00

Basically for a plugin for a dynamic site (site can be fairly large) I

  • 0

Basically for a plugin for a dynamic site (site can be fairly large) I am caching results of some sort of search (because results are from an external search), the results can be 400-1500 characters in length.

As the results come in an array, I use json_encode (faster than serialize) to store in the database, but ~1.5KB per entry (since there may be 10,000)=15MB seems a little large for me.

My questions are:
* Is this an acceptable (your opinion) size per entry?
* Will running GZip or similar and storing in a binary field in MySQL be more efficient or take too much CPU time in the end? Anything normally used similar?

I prefer to not use memcached or alike as it’s needed to be portable (but would that be better as well?) this is mostly a theory question for me, I just require input before I implement anything solid.

  • 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-16T18:19:50+00:00Added an answer on May 16, 2026 at 6:19 pm

    There will always be a CPU Cost for any kind of compression, it depends if you have the resources to handle it without any noticeable slowdown.
    Space is cheap and abundant, so 15megs is ok.

    But if you really want to compress your field, then check out Mysql’s COMPRESS() and UNCOMPRESS() functions.

    This could be dropped into your code and it would work without changing any PHP/Logic.

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

Sidebar

Ask A Question

Stats

  • Questions 538k
  • Answers 538k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If the memory is taken by the data stored in… May 17, 2026 at 1:59 am
  • Editorial Team
    Editorial Team added an answer for your edited question, you want [i * j for… May 17, 2026 at 1:59 am
  • Editorial Team
    Editorial Team added an answer While you can use isKindOfClass: to do exactly the kind… May 17, 2026 at 1:59 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Some background: On a recent project, I tried to write a streamlined jQuery plugin
Ok, I have the following structure. Basically a plugin architecture // assembly 1 -
I am currently using PHP/MySQL and the jQuery timeago plugin. Basically, I need to
I use the antrun plugin to delete and move some property files depending on
I got a question to ask on building firefox plugin, basically my aim is
I am using the Rendering plugin to generate a PDF from within a Web
This perhaps is a more general jQuery (or even JavaScript) question: Basically I am
I write a desktop application that can open / edit / save documents. Those
Gmail seems to have some clever way of handling the back/forward buttons in a
I'm basically looking to duplicate the functionality of the draggable resize function of the

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.