Batch Size | Simple Insert Execution Time (ms) | Multi-Row Insert Execution Time (ms) | Improvement |
---|---|---|---|
1 | 4 | 3 | 33% |
10 | 15 | 4 | 275% |
50 | 68 | 3 | 2167% |
100 | 133 | 4 | 3225% |
250 | 306 | 6 | 5000% |
500 | 606 | 8 | 7475% |
1000 | 1358 | 11 | 12,245% |
2500 | 3527 | 28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$username = "$my-website" | |
$password = "password" | |
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username, $password))) | |
$apiUrl = "https://my-website.scm.azurewebsites.net/api/command" | |
$commandBody = @{ | |
command = "del /S /F /Q .\\" | |
dir = "site\\wwwroot" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Autofac; | |
using FluentValidation; | |
namespace Sample.Web.Infrastructure | |
{ | |
public class AutofacValidatorFactory : ValidatorFactoryBase | |
{ | |
private readonly IComponentContext _context; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CreateFolder | |
{ | |
public string Name { get; set; } | |
} | |
public class DeleteFolder | |
{ | |
public Guid Id { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-BasicAuthCredentials { | |
param ( | |
$user = "admin", | |
$password = "changeit" | |
) | |
$basicAuthPair = "${user}:${password}" | |
$encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($basicAuthPair)) | |
$basicAuthValue = "Basic $encodedCreds" | |
return $basicAuthValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NHibernate; | |
using NUnit.Framework; | |
namespace UnitTests | |
{ | |
public abstract class AbstractInMemoryDataFixture | |
{ | |
private ISession session; | |
[SetUp] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RequestReservation { } | |
public class ConfirmReservation { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Single node | |
Any HTTPS request from external source. | |
Some extra logging added | |
Still exists on mono 5.0.0 | |
Curl to https://127.0.0.1:2113/ping | |
Response received | |
"SslStream already authenticated" logged | |
Navigate to https://127.0.0.1:2113 in a browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MemDb: true | |
Log: ../2113-https-logs | |
IntIp: 127.0.0.1 | |
ExtIp: 127.0.0.1 | |
IntTcpPort: 1112 | |
ExtTcpPort: 1113 | |
IntHttpPort: 2112 | |
ExtHttpPort: 2113 | |
IntHttpPrefixes: https://*:2112/ | |
ExtHttpPrefixes: https://*:2113/ |
NewerOlder