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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:06:22+00:00 2026-06-05T00:06:22+00:00

I have a relatively simple program which displays information and activity of users which

  • 0

I have a relatively simple program which displays information and activity of users which – due to the architecture of the program requires referencing lots of different data in different ways.

For example I have a users who can have different levels of status within different or multiple groups and these groups can have their own statuses. My question is about best practices for referencing lots of data and the speed/logic of the code.

  • Option A – have several instances data within the data base and reference this and update this individually over several tables using simple statements and queries.
  • Option B – use many nested queries and if statements to retrieve multiple bits of data

Simply put: is it best to use lots of nested queries within loops and if statements, or break the different sets of data up with in a database and reference them individually? I’m after reliability and speed rather than technical wizardry.

I know this may be very specific to my program, but I would like to know the general opinion of developers out there and their experience without getting too deep in to examples.

  • 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-05T00:06:23+00:00Added an answer on June 5, 2026 at 12:06 am

    Joins can be expensive because of a heavy temp table which is produced in the middle of operation. But an accurate data extraction can be more logical in this case. It is very dependent to your data model, tables, references, insert rate, update rate, query rate on the tables. Maybe some queries should be written using joins, maybe some of them better to be written using procedures.

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

Sidebar

Related Questions

I have a relatively simple application which I need to make native Mac OSX
I have a program in which I need to apply a 2-dimensional texture (simple
I have a relatively simple select statement in a VB6 program that I have
I have the following C99 program which measures performance of simple division operations relative
I have a relatively simple pthread program on Linux. For this purpose, I've stripped
I have a relatively simple program written in C++ and I have been using
I have a relatively simple query joining two tables. The Where criteria can be
I have a relatively simple question that I cannot seem to find the answer
I have a relatively simple subset of tables in my database for tracking something
I have this relatively simple regex for usernames // Enforce that username has to

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.