Skip to content

Commit 5f407d4

Browse files
committed
feat: define index based on pilotID
1 parent 85e1402 commit 5f407d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

diracx-db/src/diracx/db/os/pilot_logs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ class PilotLogsDB(BaseOSDB):
1515

1616
def index_name(self, doc_id: int) -> str:
1717
# TODO decide how to define the index name
18-
return f"{self.index_prefix}_0"
18+
# use pilot ID
19+
return f"{self.index_prefix}_{doc_id // 1e6:.0f}"

0 commit comments

Comments
 (0)