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

Ask A Question

Stats

  • Questions 270k
  • Answers 270k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Escaping in quotes makes life easier for tools parsing the… May 13, 2026 at 1:35 pm
  • Editorial Team
    Editorial Team added an answer i use both extensively also xsl they have very different… May 13, 2026 at 1:35 pm
  • Editorial Team
    Editorial Team added an answer Use the LEFT JOIN, but in your WHERE clause specify… May 13, 2026 at 1:35 pm

Related Questions

I'm in the design stage for an app which will utilize a REST web
I am struck by the ambition and creativity of Charles Simonyi's efforts to establish
I've built a number of work-specific helper functions that could be useful for other
I've accepted an answer, but sadly, I believe we're stuck with our original worst
I'm using swfobject to embed my flash. It's doing weird things. I've created a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.