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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:43:15+00:00 2026-05-17T17:43:15+00:00

Suppose we have a table with collumns (A,B,C) We want to search this table

  • 0

Suppose we have a table with collumns (A,B,C)
We want to search this table based on a criteria that is calculated from collumn C… and other parameters

Because the calculation is complex and cant be represented in sql query…
what should i do? Make the filtering at application level ?

  • 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-17T17:43:16+00:00Added an answer on May 17, 2026 at 5:43 pm

    No silver bullet here.

    Pros

    You can have pretty complex calculations at the database level, the pros of doing it at database level are that the RDBMS is closer to the data and transporting data back and forth from disks, through RDBMS, through network, to application is usually more expensive then doing calculations in RDBMS (where SQL is executed) and shipping only results to the application.

    Another pro is that centralizing the logic makes the system easier to maintain, but…

    Cons

    …depending on your database of choice, you might not have a wide choice of programming languages available in the RDBMS layer, so for more complex things it might get really awkward coding your task in some procedural SQL variant.

    Other reasons for not doing it at the RDBMS level is if the calculations are resource intensive (cpu, memory; think O(n!) problems and such) and the size of the output is comparable to input. In this case shipping data to the application side might be interesting to relieve the database server resources (you are in a sense distributing the computing tasks; however if your application server lives on the same hardware as database server you might not gain anything, unless you can push it all the way to the clients; look at three tier and multi tier architecture).

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

Sidebar

Related Questions

suppose that I have this RDBM table ( Entity-attribute-value_model ): col1: entityID col2: attributeName
Suppose I have two columns in a table that represents a graph, the first
Suppose I have table A with a field that can be either 1 or
Suppose I have table Person table Employee, which inherits Person. I want to get
Suppose I have this table parent | child 1 2 1 3 2 4
Suppose I have a table, the first column is an identity. I thought that
Suppose I have this table: id | name | city ------------------ 1 | n1
Suppose I have two tables, table A and table B, and that table A
Suppose we have 20 columns in a table and I want to return 19
Suppose I have an StoredProcedure that returns a unique row corresponding to a table

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.