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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:44:43+00:00 2026-06-02T08:44:43+00:00

In an admin application for the local food bank, I’ve built a PHP script

  • 0

In an admin application for the local food bank, I’ve built a PHP script to generate a set of monthly reporting statistics from a MySQL database. It appears that if the script has not been run for some uncertain amount of time it will take several seconds to run. Once run, subsequent runs of the script will take a fraction of a second. I’m trying to figure out what factors cause the lengthy first run and whether I have any control of them. The behavior is comparable between my development system and the food bank’s host so it’s not just a local phenomenon.

I’ve experimented with “flush tables” and “reset query cache” but I cannot reproduce the long run. Nor does shutting down and restarting the MySQL server (only possible on the development system) make the run longer.

Where else might I look?

Thanks.

  • 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-02T08:44:45+00:00Added an answer on June 2, 2026 at 8:44 am

    My first port of call in circumstances like this would be to profile the script to see what’s taking the time. You say you can replicate the problem locally. In that case get yourself a profiler (xDebug and the Zend Debugger can both profile scripts, there may be others) and profile your script to see where the time is going.

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

Sidebar

Related Questions

I'm running NServiceBus 3.0.0 rc2 but when I start the application (as local admin)
I have a django application set up using mainly the admin interface with a
It's the concern about Admin console's performance from Websphere Application Server. I can login
I want to create a simple desktop admin application for an IOS app that
Hello I need to have multiple language support of my django admin application.I can
In my urls file I have configured the Django admin application to run off
Hi Sitepoint wizard people, Say we have an admin application that has multiple users
I've made an Area project for my ASP.NET MVC application called 'Admin'. This will
In the Admin area of my application, an object must be available in ViewData
i have a web application that export CSV and i logged in as admin

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.