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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:10:41+00:00 2026-06-05T19:10:41+00:00

I am using an API which has a limit on requests. The API response

  • 0

I am using an API which has a limit on requests. The API response is in XML and typically it is around 8 kB big.To say short: I want to eliminate to exactly send the same requests twice to the API.

There can be over 2 million requests with their appropriate answers. So when I get that amount of XML responses copied to records in MySQL, will it respond fast enough if I query it?

Table structure:

  • id int PK Auto Increment
  • request_parameters TEXT UNIQUE
  • response TEXT

I found MySQL Query Cache, but I think its only handy for much requested requests. The other will maybe slow down?
I also found Varnish, but it seems to me more a HTML/code cache.

  • 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-05T19:10:43+00:00Added an answer on June 5, 2026 at 7:10 pm

    I assume:

    • you only need to fetch a response from a given request_parameters (...WHERE request_parameters = 'some string')
    • request_parameters are not too long (under 1000 characters)

    I advise:

    1. Drop your ID column. Although some people recommend always using an integer as a primary key, I understand you are not trying to build a relational database. You just need one table for storage.

    2. Change your request_parameters column types to VARCHAR(x), “x” being the largest expected size of a parameter string.

    3. Make request_parameters the primary key.

    4. As advised by PLB, store the serialized version of your XML responses.

    2 millions rows of such data will require several Gb, plus some space for the index. If you have a hell lot of available memory on your system, and if you can afford loosing all your data when you restart MySQL, then you might want to go for a try with MEMORY table.

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

Sidebar

Related Questions

I am using google data api which gives date in datetime format. I want
Say for an example:- I have created thread pThread using CreateThread Api which will
I have an XML response from the Google Directions API and want to cache
I'm trying to optimize my web application using Google's Page Speed API which has
I am using an api which interacts with a db. This api has methods
I am using an api which allows me to generate reports in PDF format.
I am using an API which provides a Java version but not a Python
I'm using Yahoo Placemaker API which gives different structure of json depending on input.
Assuming I'm using some graphic API which allows me to draw bezier curves by
I am developing a demo application using Last.FM API which will get list of

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.