SQL Server main performance difference between two versions

I have SQL Server installations. Both are running under HyperVisor on the same processor. Both have the same amount of core / RAM / disk space allocated.

  • One is the old server and the other is the new one.
  • The old server is running Windows Server 2008 with SQL Server 2008.
  • The new server will run Windows Server 2017 with SQL Server 2017.

Databases are exactly the same. They were transmitted overnight via the new server. We have also removed a new one of them on the new server, so we have a little less database on the new server.

All queries on the old server are different from those on the new server 70 and 100 times slower, This is tested in both cases in Remote Desktop directly on the server with the Sat. Account.

A simple example is when I check with locks sp_who2, On the old server it is about 50 ms. It can take up to 1900-2100 ms on the new server, which is about 50 times slower. Then we come to a more average query like the following to get the 500 worst-performing queries. Note that a standard SQL Server database is used here. So the default settings are used and nothing is changed.

SELECT top 500
GETDATE () AS "Pickup Date",
qs.last_execution_time as "Date of last execution",
qs.execution_count AS "execution counter",
SUBSTRING (qt.text, qs.statement_start_offset / 2 +1,
(CASE WHEN qs.statement_end_offset = -1
ELSE qs.statement_end_offset END -
) / 2
) AS "query text",
DB_NAME (qt.dbid) AS "DB name",
qs.total_worker_time AS "total CPU time",
qs.total_worker_time / qs.execution_count AS "Average CPU Time (ms)",
qs.total_physical_reads AS "Total Physical Reads",
qs.total_physical_reads / qs.execution_count AS "Average physical reading",
qs.total_logical_reads AS "Total logical reads",
qs.total_logical_reads / qs.execution_count AS "Average Logical Read",
qs.total_logical_writes AS "Logical Total Writes",
qs.total_logical_writes / qs.execution_count AS "Average logical writing",
qs.total_elapsed_time AS "Total duration",
qs.total_elapsed_time / qs.execution_count AS "Average Duration (ms)",
qp.query_plan AS "Plan"
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY sys.dm_exec_sql_text (qs.sql_handle) AS qt
CROSS APPLY sys.dm_exec_query_plan (qs.plan_handle) AS qp
qs.execution_count> 50 OR
qs.total_worker_time / qs.execution_count> 100 OR
qs.total_physical_reads / qs.execution_count> 1000 OR
qs.total_logical_reads / qs.execution_count> 1000 OR
qs.total_logical_writes / qs.execution_count> 1000 OR
qs.total_elapsed_time / qs.execution_count> 1000
qs.execution_count DESC,
qs.total_elapsed_time / qs.execution_count DESC,
qs.total_worker_time / qs.execution_count DESC,
qs.total_physical_reads / qs.execution_count DESC,
qs.total_logical_reads / qs.execution_count DESC,
qs.total_logical_writes / qs.execution_count DESC

This query runs on the old server in 1 or 2 seconds. On the new server, it takes between 1 min 40 seconds and 2 min 20 seconds, which is 160 times slower. I have the worst queries for events in the 20 seconds, which now take up to 5-6 minutes. And yes, these tests are all done at night when nobody is connected

My question is whether there are some default settings in SQL Server 2017, or maybe something in Windows Server 2017 that needs to be changed now to get the same performance as in 2008.

Check the Windows performance tools for all queries do not CPU, RAM and floppy have either an old or a new server. So we know something in SQL Server / Windows slows things down.

Advanced Custom Fields – ACF: How can get_field () ignore the main WP query?

I've applied a filter to the WP main query about a load action (pre_get_posts) for all the administration pages on my site. It merely restricts the edit page (listing page) to display records created only by the particular user who is currently logged in.

The problem is that this causes the ACF functions to stop working properly. I have a function called by another action loaded via acf / init. The function queries a repeater field with get_field (). The value returned by get_field () is not the expected array, but only integers. If I remove this filter code, the problem does not occur.

// The filter code that shows only the current author contributions
add_action ("pre_get_posts", "query_set_only_author");
Function query_set_only_author ($ wp_query) {
if (is_admin () && get_current_user_role () == "required_role") {
if (base name ($ _ SERVER[‘PHP_SELF’]) == "edit.php") {
$ wp_query-> set ("author", $ current_user-> ID);

So my question is, it seems like get_field has applied my general page filter for editing. So how can I not use the filtered query?

ranking – How can a bad SEO site be about us for our main keywords?

I am not sure if this place is right to ask, but we have a problem.
A website ranks two places higher than the one we work at, but we do not know why because their gtmetrix score is so bad, and the one we work on is brilliant.

Their page value is 67 and poorly optimized plus 6.73 MB.
We work on 95% +, top optimized and under 2 MB.

Your page has little schema code locally. This has everything what is needed.

Is it a case that it takes a long time for Google to see the new code or something else?

We were wondering if the keywords needed to be posted on the site. Example: You are a Cambridge window cleaner. If these three words ONLY on the homepage or within the website are, for. For example, pages on the products used to add "as a window cleaner in Cambridge" … is that good?

Does it make sense to use these keywords in a blog?
We try to find out why these are badly written websites.

What does your company need?

The classification of web apps is quite difficult and varied. The following describes the different types of web applications, depending on the type of function, as follows. Custom software Development Company develops a different type of web application based on user requirements.

Web portals

As the word "portal" indicates, it is a point on the Internet that acts as a single point of contact for multiple functions. Some of the web portal's most popular features include published content, access to email, personal profile, and financial transactions. The key moment is that all these functions work on a self-service basis. In other words, a portal should provide automated functionality that allows users to do their own work.

Web apps for business

Rather than meeting the general needs of an entire enterprise as an enterprise web portal does, enterprise web apps address the challenges of more specific user groups: departments, project teams, etc. Again, there are many features, but they all should have a common goal to organize the work flow of employees and help them to be productive.

Web solutions for business automation

Developing business app solutions for business automation solutions can target common business tasks as well as very precise, industry-related processes, such as: For example, a health care administration application that works on the one hand with EHR and on the other with customer systems. These web apps, for example, provide for acceptance of requests and data synchronization. They allow employees to focus on essential, less tedious work.

E-commerce Web Apps

The category of e-commerce web apps is quite large and includes all types of e-shops as well as booking systems such as transportation, accommodation, entertainment etc.
Ecommerce web frameworks such as Magento can support the maintenance of these rich web apps by introducing an easy-to-use administration window. A content manager of e-commerce web apps with installed Magento system will be sufficient without additional knowledge of web apps to update product catalogs for free, launch special offers and manage a customer database.


Microsites are web apps with a small number of pages and thus – a very short menu. Her main concern is to represent a company or promote an event online by providing a general overview and providing the required contact information.


Is there an infinite number of main "tuples"

I found this interesting sequence for primes:

$ 2 + 3 = $ 5
$ 7 + 11-5 = $ 13
17 + 19 – 13 = 23
29 + 31 – 23 = 37
41 + 43 – 37 = 47

Unfornutaley, now the pattern breaks, but comes back:

Primes = []
c = 0
for possiblePrime in the range (2, 20000):

# Suppose the number is prime until it is not displayed.
isPrime = True
for num in range (2, possiblePrime):
if possiblePrime% num == 0:
isPrime = False
if isPrime:
primes.append (possiblePrime)
for i in the range (5, 1000, 3):
a = primes[i-2] + primes[i-1]
  a = a - primes[i-3]
  if a! = primes[i]:
c = c + 1
print ("" +) (primes[i-2]) + "+" + repr (Primes[i-1]) + "-" +
repr (primes[i-3]) + "! =" + repr (Primes[i]))
print ("" +) (primes[i - 2]) + "+" + repr (Primes[i - 1]) + "-" + repr (Primes[i - 3]) + "=" + repr (

Are the infinite numbers of these tuples?

Yours sincerely

python – how do I write my main () code so it can run

I want to find the GCD (the biggest common denominator) and am a bit confused about how pycharm will make me do it. it gives me mistakes. I just know, I would really appreciate the help.

So I tried to add gcd (a, b) to the def main (), but it will not work. I also tried gcd () and says that a and b are undefined.

def main ()
gcd (a, b)
def gcd (a, b):
while (b! = 0):
t = a
a = b
b = t% b
Return a
Pressure (gcd (60,96))
print (gcd (20,8))

the answer should be 12 and 4 thanks

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123
Proxy Sites Proxy Tunnels Proxy List Working Proxy Sites Hotproxysite Proxy Sites Proxy Sites Anonymous Proxy Anonymous Proxies Top-Proxies.co.uk http://www.proxysitesnow.com Proxy Servers Free Proxies Free Proxy List Proxy List Zoxy Proxy List PR liste all proxy sites More Proxies netgofree netgofree Hide-MyIp - The Best Proxy List American Proxy List www.proxylisty.com/proxylist Web Proxy Submit Proxies Updated Proxy List Updated Proxy List aproxy.org Bypass Proxy Sites Free Proxies List Evolving Critic Business Web Directory Free Proxy List iShortIt MyProxyList Online Proxies Go Proxies Need Proxies PrivateProxies Proxies4MySchool Proxies4Work Free Proxy List Free Proxy Sites ProxyInside Wiksa Proxy ProxyLister.org Free Proxy List ProxyNoid Proxy List Free Proxy List Proxy Sites Proxy TopList ProxyVille UK Proxy WebProxy List RatedProxy.com - Listing the best Web Proxies Free Proxy List SchoolProxiesList Stay Anonymous Proxy List The Power Of Ninja Proxy List UNubstruct Free proxy sites Free proxy sites