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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:45:09+00:00 2026-05-27T12:45:09+00:00

This question is about comparing of query optimization -vs- server performance . So I

  • 0

This question is about comparing of query optimization -vs- server performance. So I hope this question could be posted at this forum as well.

As I understand, the PRIMARY (but not a single) reason to optimize queries is to make a server work faster.

So, are there any difference for the server between: query optimization, so it gives +50% of performance -vs- moving a web-site to another hosting provider with servers that are 1.5 times faster.
(of course, we can do both, but time counts as well, and moving to another hosting looks much much easier way).

  • 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-27T12:45:09+00:00Added an answer on May 27, 2026 at 12:45 pm

    It depends on what you mean by “faster”. It doesn’t matter at all if the CPUs in your faster box run at ten times the speed of the slower one if the bottleneck is actually disk.

    Extreme example, say you have a table with no indexes at all so that all queries have to do a full table scan. This will almost certainly make the disk the bottleneck as you have to load the entire table into memory (though not necessarily all at the same time) to select the relevant rows.

    If you transfer this inefficient query to a box with gruntier CPUs but similar disks, you won’t see much of an improvement.

    However, if you add an index that allows you to only process 0.01% of the full table, you’ll get a big performance increase without faster CPUs.

    By all means investigate moving to another host but I think you’ll probably find that it’s easier to analyse the slower queries and figure out which indexes to add to speed them up.

    Executing an alter table ... create index ... statement seems to me to be much simpler than shifting the workload.

    Just make sure that, whatever you do, you measure the impact. Without metrics before and after, optimisation is doomed to failure: in other words, measure, don’t guess!

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

Sidebar

Related Questions

I have a question about this question . I posted a reply there but
There's this other question asking about how comparing pointers is supposed to be interpreted
This question about Timers for windows services got me thinking: Say I have (and
Followed this question about delayed_job and monit Its working on my development machine. But
This question is a follow up to my previous question about getting the HTML
I was reading this question about how to parse URLs out of web pages
I just came across this question about initializing local variables. Many of the answers
I have seen this question about deploying to WebSphere using the WAS ant tasks.
Follow up to this question about GNU make : I've got a directory, flac
This is sort of the Java analogue of this question about C# . Suppose

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.