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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:46:28+00:00 2026-05-23T18:46:28+00:00

I have a query with 4000 object type of data needs to be pulled

  • 0

I have a query with 4000 object type of data needs to be pulled out and form a json result. When I run within 400 number of data, it’s fine. But when I want to pull out more data. It gave me blank page – I suppose that the php is just stopped executing. But what I had waited is only 10 – 20 seconds. The time out setting might not be the issue. Is it something about memory. So I changed memory_limit to 512M and tried again, still, no change.

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60     ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 512M      ; Maximum amount of memory a script may consume (128MB)

Then I wonder if it’s mysql related but I really don’t know what to change…

key_buffer_size = 16K
max_allowed_packet = 16M
table_open_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 128K

I am on testing box so CPU, RAM won’t be the issue.

Any idea what might be the problem?

  • 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-23T18:46:30+00:00Added an answer on May 23, 2026 at 6:46 pm

    This doesn’t answer the question as asked, but you could keep memory usage low by printing the outer JSON array manually:

    echo "[";
    $first = true;
    while ($row = mysql_fetch_assoc($result)) {
        if ($first)
            $first = false;
        else
            echo ",";
        echo json_encode($row);
    }
    echo "]\n";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using in C# MYsql .I have query that works if I run
I have a named hql query which makes use of object constructors for an
I have 4000 rows for example, and I define X limit. The query stops
I have created a procedure create procedure testProcedure_One as DECLARE @Query nvarchar(4000) begin SET
I have the following query: SELECT CAST([Action] AS NVARCHAR(4000)) AS CastAction, CHARINDEX(CAST([Action] AS NVARCHAR(4000)),
I am just carrying out a query, and have started using parameters. And all
I have a SQLite backed database of roughly 4000 rows, connected to Core Data.
I've noticed that a few Wordpress blogs have query statistics present in their footer
I have a query where I wish to retrieve the oldest X records. At
I have a query that is dynamically built after looking up a field list

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.