Skip to content

Commit

Permalink
Select SimpleDB URLs for deletion with a consistent read
Browse files Browse the repository at this point in the history
  • Loading branch information
NFarrington committed Jun 12, 2023
1 parent 0f54641 commit 66ea150
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Console/Commands/SyncSimpleDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function handle()
// remove URLs that haven't been updated
$iterator = $this->simpleDbClient->getIterator('Select', [
'SelectExpression' => "select * from VatsimUrlShortenerUrls where UpdatedAt < '{$updateCutoff}'",
'ConsistentRead' => true,
]);
foreach ($iterator as $item) {
$this->info("Deleting URL '{$item['Name']}'.");
Expand Down

0 comments on commit 66ea150

Please sign in to comment.