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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:52:54+00:00 2026-05-13T08:52:54+00:00

Almost in all stages of my application, the database inserts / updates / deletions

  • 0

Almost in all stages of my application, the database inserts / updates / deletions are done by the application code (in my case, PHP).

However, in some situations, I am using MySQL triggers to do some calculations and changes to the tables.

Is this a recommended approach? Or is there any best practice rule that only the application should do all the work and not the database?

Thanks for any recommendation.

  • 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-13T08:52:54+00:00Added an answer on May 13, 2026 at 8:52 am

    The database is typically the hardest thing to scale. As a result, at very high scale, one popular strategy is to use only the most basic database features to ensure maximal database performance — which means no triggers, no foreign keys, no joins (accomplished via denormalization), etc. However, this is only something you have to worry about if you’re in, say, the top 1% of the web.

    However, simplicity is always a high priority as well. And triggers are often the simplest solution. If you’re not going to be anywhere near the top 1% of the web in the near future (and let’s be honest — few, if any of us here are) go ahead and use triggers.

    Designing an application for facebook-levels of scale requires far more work and maintenance overhead than writing an application the simple way. And if you don’t reach facebook-level traffic, all that work was wasted.

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

Sidebar

Related Questions

In almost all projects, the choice of the database system is 'almost' automatic ..
All right, I've seen some posts asking almost the same thing but the points
Almost all of the Delphi code I have read has all the class type
Almost all the examples I see are done with IB but I don't want
Almost all of the examples in the jQuery tutorials that I've read, usually use
Almost all of my JUnit tests are written with the following signature: public void
In almost all of my projects I have few files that are project wide
In the STL almost all containers have an erase function. The question I have
I noticed that almost all email messages I get do not embed images, but
I have tried almost all the solutions from SO but no success :(. I

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.