-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Web.config
62 lines (62 loc) · 3.53 KB
/
Web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</configSections>
<!-- Connection Strings -->
<!-- Names are case insensitive -->
<connectionStrings>
<add name="MySQL" connectionString="server=localhost; user id=benchmarkdbuser; password=benchmarkdbpass; database=hello_world" providerName="MySql.Data.MySqlClient"/>
<add name="PostgreSQL" connectionString="server=localhost; user id=benchmarkdbuser; password=benchmarkdbpass; database=hello_world" providerName="Npgsql"/>
<add name="MongoDB" connectionString="mongodb://localhost"/>
<add name="SQLServer" connectionString="server=localhost; user id=benchmarkdbuser; password=B3nchmarkDBPass; database=hello_world" providerName="System.Data.SqlClient"/>
</connectionStrings>
<!-- ADO.NET -->
<system.data>
<DbProviderFactories>
<clear/>
<add name="MySql.Data.MySqlClient" description="Data Provider for MySQL" invariant="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.7.2.0"/>
<add name="Npgsql" description="Data Provider for PostgreSQL" invariant="Npgsql" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.0.13.91"/>
<add name="System.Data.SqlClient" description="Data Provider for Microsoft SQL Server" invariant="System.Data.SqlClient" type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0"/>
</DbProviderFactories>
</system.data>
<!-- Entity Framework -->
<entityFramework>
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity, Version=6.7.2.0"/>
<provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, Npgsql, Version=2.0.13.91"/>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
<appSettings>
<!-- Disable support for directly accessing *.cshtml/*.vbhtml files because that is a perf killer
and because we don't use such functionality. -->
<add key="webpages:Enabled" value="false" />
<!-- To fully saturate the CPUs, we need to allow the .NET thread pool to create many threads
when a large burst of requests come in. We do this by boosting the minWorkerThreads value
from the default of 1 per logical processor to 8 per logical processor. This seems to be
pretty conservative as http://support.microsoft.com/kb/821268 recommends 50.-->
<add key="minWorkerThreadsPerLogicalProcessor" value="8" />
</appSettings>
<system.web>
<!-- Show errors -->
<customErrors mode="Off"/>
</system.web>
<!-- Register the application as an HTTP module -->
<system.webServer>
<!-- Used by IIS -->
<modules>
<remove name="Framework Benchmarks"/>
<add name="Framework Benchmarks" type="Benchmarks.AspNet.Application"/>
</modules>
<!-- In IIS >= 7.0 it's not possible to have both <httpModules> and <modules>, this setting disables the warning -->
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
<system.web>
<!-- Used by the XSP web server on mono -->
<httpModules>
<remove name="Framework Benchmarks"/>
<add name="Framework Benchmarks" type="Benchmarks.AspNet.Application"/>
</httpModules>
</system.web>
</configuration>