Skip to content

Instantly share code, notes, and snippets.

View jesuslpm's full-sized avatar

Jesús López jesuslpm

View GitHub Profile
@jesuslpm
jesuslpm / gist:3818723
Created October 2, 2012 12:38
Default sharding strategy doesn't save all entities in all shards
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client.Document;
using Raven.Client.Shard;
using Raven.Client.Embedded;
using Raven.Client;
using Xunit;
@jesuslpm
jesuslpm / gist:3826266
Created October 3, 2012 10:25
RavenDB FullTextSearch on all properties. The query should return the matching values and the property names
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client;
using Raven.Client.Indexes;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Raven.Client.Linq;
using Xunit;
@jesuslpm
jesuslpm / FailingTest.cs
Created October 5, 2012 09:30
Map reduce indexes that access metadata does not work
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
using Raven.Client;
using Raven.Client.Linq;
using Xunit;
@jesuslpm
jesuslpm / gist:3839301
Created October 5, 2012 11:18
Metadata filtering in multimap reduce index
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Database;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Xunit;
using Raven.Client.Indexes;
@jesuslpm
jesuslpm / gist:3839305
Created October 5, 2012 11:20
Group by metadata in RavenDb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Database;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Xunit;
using Raven.Client.Indexes;
@jesuslpm
jesuslpm / SimpleJoinWithMultimapReduce.cs
Created October 6, 2012 07:27
RavenDB Simple join with multimap reduce
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client.Indexes;
using Raven.Client;
using Raven.Client.Embedded;
using Raven.Json.Linq;
namespace SimpleJoinWithMultimapReduce
@jesuslpm
jesuslpm / LocalizableEntities.cs
Created October 8, 2012 09:01
Proposed model for localizable entities
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Xunit;
using Raven.Json.Linq;
using System.Diagnostics;
using Raven.Client;
@jesuslpm
jesuslpm / gist:3851961
Created October 8, 2012 11:03
Modeling localization in RavenDB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Xunit;
namespace Raven.Tests.Localization
{
@jesuslpm
jesuslpm / SessionStoreIgnoresEtag.cs
Created October 9, 2012 15:23
session.Store(entity, etag) ignores the etag if the entity is the session
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Raven.Client;
namespace Test
{
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdlib.h>
#include <string.h>
#include <ctime>
struct INTEGER_LIST
{