by @Nick_Craver
Decide what's important to you
Keeping it stupid, simple
Going faster
...and maybe staying online
Suck it up
Fix it
Make it better
Dealing with matters of scale
Seemingly Random Slow HTTP Responses
var sw = Stopwatch.StartNew();
doThing();
sw.Stop();
var users = Current.DB.Query<User>(@"
Select *
From Users
Where Id In @ids", new { ids = userIds });
var mdUsers = Current.DB.Query<User, UserMetadata, User>(@"
Select u.*, umd.*
From Users u
Join UserMetadata umd On u.Id = umd.UserId
Where u.Id IN @ids",
(u, umd) => { u.CachedMetadata = umd; return u; },
new { ids = sanitizedIds },
splitOn: "UserId");
Setting Goals
Getting Ready
We love Q&A