I’m working with classes that contain a numeric identifier as a property with data type int, which corresponds with an identifier from another system. I’m using an aggregate query to identify the maximum id so I know where to resume loading data from the source system. The dataset is pretty large (millions) and the more records that get loaded the longer it takes for that maximum to be queried when I try to resume. Increasing the timeout only goes so far … is there a better way for me to query this?
My query looks something like this:
result = (
client.query
.aggregate("MyClass")
.with_fields("my_identifier {maximum}")
.do()
)
Thanks