Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do more work faster

  • Loading branch information...
commit bb70376d95e41dff039e5a04bb78c9c42c2fa14b 1 parent 891c02a
@ayende authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Raven.SimulatedWorkLoad/Program.cs
View
6 Raven.SimulatedWorkLoad/Program.cs
@@ -52,7 +52,7 @@ private static void WriteToDatabase(List<Observing<User>> sources, Random random
createIndexes.CreateIndexesSecond();
- Thread.Sleep(random.Next(50, 300));
+ Thread.Sleep(random.Next(50, 150));
if (count%100 == 0)
{
@@ -132,13 +132,13 @@ public void CreateIndexesSecond()
return;
var databaseStatistics = documentStore.DatabaseCommands.GetStatistics();
- if (createdMapIndexes2 == false && databaseStatistics.CountOfDocuments > 100 * 1000)
+ if (createdMapIndexes2 == false && databaseStatistics.CountOfDocuments > 25 * 1000)
{
new Users_Locations().Execute(documentStore);
createdMapIndexes2 = true;
}
- if (createdMapReduceIndexes2 == false && databaseStatistics.CountOfDocuments > 150 * 1000)
+ if (createdMapReduceIndexes2 == false && databaseStatistics.CountOfDocuments > 40 * 1000)
{
new Users_Stats_ByStateAndcity().Execute(documentStore);
createdMapReduceIndexes2 = true;
Please sign in to comment.
Something went wrong with that request. Please try again.