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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:04:17+00:00 2026-06-07T14:04:17+00:00

I am managing a website which has about 140.000 documents. This system had been

  • 0

I am managing a website which has about 140.000 documents. This system had been running without a problem for more than two years using the same setup. We had to migrate our servers to a new infrastructure and since then there are some anomalies.

Every document has a status in the database. Status code (int) 5 means that the document is deleted/removed.

Every hour or so, the status code of some 10 documents changes to 5. We do not lose the actual document but it becomes unavailable to the end user. I am trying to figure out what’s causing the issue, but couldn’t find the source of it.

We have two queries which can change the status of the document. I have temporarily disabled one of them, and I have changed the status code of the deleted document to 6 in the codebase.

However, we still have the same problem and the status code changes to 5, not 6.

I have enabled the query log, and spent hours but there are no update queries to those deleted documents, except the view_count increase which is a very short and simple query. The document gets requested by someone at the same time it gets deleted. However, all the queries are select queries (except view_count) and there is no difference between other documents. And we have hundreds of page views every second. Only one of them gets deleted, randomly.

So, if I could see in the query log, I could try to find out that particular query in the code base. However, it even doesn’t show anything. So, I am clueless right now.

Do you have any suggestions? I have to solve this issue, so I can try anything.

New system is;

Debian 6.0.5
MySQL 5.5.24 – Percona Build
PHP-NGINX-SOLR box

  • 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-07T14:04:20+00:00Added an answer on June 7, 2026 at 2:04 pm

    Profile UPDATE queries with Jet Profiler or Percona Toolkit, analyse them and you shall find the answer.

    General Query Log may also help you finding that particular update query.

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

Sidebar

Related Questions

I'm creating a website in which I will be managing users and their permissions.
Although this question have been asked and answered before, including on this website, I
I was thinking about using PHP:SVN for managing svn repositories on a production website.
Disclaimer: This is a follow-on question from my other question about NServiceBus which was
I am having this scenario: A website for managing hotels. Another kind of Hotel
I am managing a big website which is localized for 9 languages. But when
I've used this Git setup for managing a website: http://toroid.org/ams/git-website-howto . Things work, until
Ok so I seem to be the only administrator managing a SharePoint website on
I'm just wondering what do you use for managing visitor requests on your website?
I'm looking for a commercial option for managing email distribution groups through a website.

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.