Skip to content

Commit

Permalink
Added more uses of transact:
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabacman committed Feb 8, 2024
1 parent 2d3a1ff commit 41b984a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions source/Sagan-GemStone/GemStoneRepository.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,23 @@ GemStoneRepository >> findAllMatching: aCriteriaOrBlock sortedBy: aSortFunction
{ #category : 'configuring' }
GemStoneRepository >> indexByEquality: aPath typed: aType [

GsIndexSpec new
equalityIndex: ( 'each.<1s>' expandMacrosWith: aPath )
lastElementClass: aType
options: self saganGemStoneIndexOptions;
createIndexesOn: contents
self transact: [
GsIndexSpec new
equalityIndex: ( 'each.<1s>' expandMacrosWith: aPath )
lastElementClass: aType
options: self saganGemStoneIndexOptions;
createIndexesOn: contents
]
]

{ #category : 'configuring' }
GemStoneRepository >> indexByIdentity: aPath [

GsIndexSpec new
identityIndex: ( 'each.<1s>' expandMacrosWith: aPath ) options: self saganGemStoneIndexOptions;
createIndexesOn: contents
self transact: [
GsIndexSpec new
identityIndex: ( 'each.<1s>' expandMacrosWith: aPath ) options: self saganGemStoneIndexOptions;
createIndexesOn: contents
]
]

{ #category : 'initialization' }
Expand Down

0 comments on commit 41b984a

Please sign in to comment.