Skip to content
Browse files

Will now show docs in update order, not insert order, will push updat…

…ed docs to the fore.
  • Loading branch information...
1 parent 0dd2d01 commit ca5d3eecbd8df700b0ea51eef9063c40afc33618 @ayende ayende committed May 14, 2010
Showing with 16 additions and 2 deletions.
  1. +1 −0 Raven.Database/Raven.Database.csproj
  2. +3 −2 Raven.Database/Storage/StorageActions/Documents.cs
  3. +12 −0 RavenDB.sln
View
1 Raven.Database/Raven.Database.csproj
@@ -105,6 +105,7 @@
<Compile Include="Exceptions\IndexDoesNotExists.cs" />
<Compile Include="IStartupTask.cs" />
<Compile Include="Json\JsonLuceneNumberConverter.cs" />
+ <Compile Include="Plugins\Builtins\FilterRavenInternalDocumentsReadTrigger.cs" />
<Compile Include="Plugins\IIndexUpdateTrigger.cs" />
<Compile Include="Plugins\IReadTrigger.cs" />
<Compile Include="Plugins\ReadOperation.cs" />
View
5 Raven.Database/Storage/StorageActions/Documents.cs
@@ -83,9 +83,10 @@ public JsonDocument DocumentByKey(string key, TransactionInformation transaction
};
}
- public IEnumerable<JsonDocument> GetDocumentsByReverseCreationOrder(Reference<bool> hasMore, int start)
+ public IEnumerable<JsonDocument> GetDocumentsByReverseUpdateOrder(int start)
{
- Api.MoveAfterLast(session, Documents);
+ Api.JetSetCurrentIndex(session, Documents, "by_etag");
+ Api.MoveAfterLast(session, Documents);
for (int i = 0; i < start; i++)
{
if(Api.TryMovePrevious(session,Documents) == false)
View
12 RavenDB.sln
@@ -23,6 +23,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raven.Client.Lightweight",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raven.Tryouts", "Raven.Tryouts\Raven.Tryouts.csproj", "{68BC3141-C2EF-487A-B4A6-A0AD7E754FB1}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raven.Smuggler", "Raven.Smuggler\Raven.Smuggler.csproj", "{3E6401AC-3E33-4B61-A460-49953654A207}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -143,6 +145,16 @@ Global
{68BC3141-C2EF-487A-B4A6-A0AD7E754FB1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{68BC3141-C2EF-487A-B4A6-A0AD7E754FB1}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{68BC3141-C2EF-487A-B4A6-A0AD7E754FB1}.Release|x86.ActiveCfg = Release|Any CPU
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Debug|x86.ActiveCfg = Debug|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Debug|x86.Build.0 = Debug|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Release|Any CPU.ActiveCfg = Release|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Release|Mixed Platforms.Build.0 = Release|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Release|x86.ActiveCfg = Release|x86
+ {3E6401AC-3E33-4B61-A460-49953654A207}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

0 comments on commit ca5d3ee

Please sign in to comment.
Something went wrong with that request. Please try again.