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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:56:08+00:00 2026-06-05T23:56:08+00:00

I am building a new web applications with data stored in the database. as

  • 0

I am building a new web applications with data stored in the database. as many web applications, I need to expose data from complexe sql queries (query with conditions from multiple table). I was wondering if it could be a good idea to build my queries in the database as sql view instead of building it in the application? I mean what would be the benefit of that ? database performance? do i will code longer? debug longer?

Thank you

  • 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-05T23:56:15+00:00Added an answer on June 5, 2026 at 11:56 pm

    This can not be answered really objectively, since it depends on case by case.

    With views, functions, triggers and stored procedures you can move part of the logic of your application into the database layer.

    This can have several benefits:

    • performance — you might avoid roundtrips of data, and certain treatment are handled more efficiently using the whole range of DBMS features.
    • consisness — some treatment of data are expressed more easily with the DBMS features.

    But also certain drawback:

    • portability — the more you rely on specific features of the DBMS, the less portable the application becomes.
    • maintenability — the logic is scattered across two different technologies which implies more skills are needed for maintenance, and local reasoning is harder.

    If you stick to the SQL92 standard it’s a good trade-off.

    My 2 cents.

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

Sidebar

Related Questions

I'm going to start a new project that's building web apps from scratch. I
I'm new to codeigniter and building web applications using MVC. I'm trying to wrap
I am building an ASP.NET web application that will use SQL Server for data
I am building a new applications architecture and I need your advice. We have
I'm building a web application using Yii framework, and i'm quite new to it.
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI
I'm building a new web app that has a requirement to generate an internal
I am building a new web-app, LAMP environment... I am wondering if preg_match can
Building a new Mobile Web Platform for Mobile Users to purchase & download content
I have a dedicated server and I'm in need for building new version of

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.