Skip to content

Instantly share code, notes, and snippets.

@NeoDarque
NeoDarque / gist:e955aea9de85512d9b54
Created June 6, 2015 17:10
Message missing in PreRestart?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Akka.Actor;
using Akka.Routing;
using AkkaLab.Messages;
namespace AkkaLab.Publisher {
@NeoDarque
NeoDarque / gist:5075494
Created March 3, 2013 09:47
ORM: Olika strategier för att hämta data
// N + 1
[Test]
public void NPlusOne_1() {
var reports = Session.QueryOver<Report>()
.OrderBy(r => r.Id).Desc
.Take(100)
.List();
foreach(var report in reports)