Alpha Version: You are viewing the ALPHA documentation. This is an experimental version and may contain breaking changes.
Skip to main content

QueryEngine — Local

Source: reventless-local/src/adapter/QueryEngine/LocalQueryEngine.res

AWS equivalent: QueryEngine → DynamoDB

How It Works

Created via Make(Bus) functor. Uses the bus's QueryDb registries to look up data:

  • scan — calls Bus.getQueryDbStream(readModelName) and applies Stream.take(limit) to honour the limit without loading all items. Falls back to Bus.getQueryDbScan for backward compatibility.
  • query — calls Bus.getQueryDb(readModelName) to get the operations record, then uses loadStream with optional Stream.take(limit).

Operations

OperationDescription
scanFull scan of a read model's data with optional limit
queryKey-based lookup with optional limit

Key Differences from AWS

AspectLocalAWS
ScanIn-memory array/stream iterationDynamoDB Scan with filter expressions
QueryDict key lookupDynamoDB Query with key conditions
IndexesNot supportedsecondary index/LSI support
FilteringNone (returns all matches)DynamoDB filter expressions