Skip to content

Commit 39745a9

Browse files
Merge pull request #24 from praekeltfoundation/increase_page_size
Increase page size from 100 to 1000
2 parents 999ec92 + 958572a commit 39745a9

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

rdw_ingestion_tools/api/turn_bq/extensions/httpx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def get_paginated(
7-
client: Client, url: str, page_size: int = 100, **kwargs: str | int
7+
client: Client, url: str, page_size: int = 1000, **kwargs: str | int
88
) -> Iterator[dict]:
99
"""Paginate over Turn BQ API.
1010

rdw_ingestion_tools/api/turn_bq/requests/chats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_chats_by_updated_at(
3838
}
3939

4040
chats_generator = get_paginated(
41-
self.client, url, page_size=100, **params
41+
self.client, url, page_size=1000, **params
4242
)
4343

4444
chats = concatenate(chats_generator)

rdw_ingestion_tools/api/turn_bq/requests/contacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_contacts_by_updated_at(
3838
}
3939

4040
contacts_generator = get_paginated(
41-
self.client, url, page_size=100, **params
41+
self.client, url, page_size=1000, **params
4242
)
4343

4444
contacts = concatenate(contacts_generator)

rdw_ingestion_tools/api/turn_bq/requests/flow_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_flow_results_by_updated_at(
5151
}
5252

5353
flow_results_generator = get_paginated(
54-
self.client, url, page_size=100, **params
54+
self.client, url, page_size=1000, **params
5555
)
5656

5757
flow_results = concatenate(flow_results_generator)

rdw_ingestion_tools/api/turn_bq/requests/flow_results_data_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_flow_results_data_packages_by_updated_at(
5555
}
5656

5757
flow_results_data_packages_generator = get_paginated(
58-
self.client, url, page_size=100, **params
58+
self.client, url, page_size=1000, **params
5959
)
6060

6161
flow_results_data_packages = concatenate(

rdw_ingestion_tools/api/turn_bq/requests/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_messages_by_updated_at(
2424
}
2525

2626
messages_generator = get_paginated(
27-
self.client, url, page_size=100, **params
27+
self.client, url, page_size=1000, **params
2828
)
2929

3030
messages = concatenate(messages_generator)

rdw_ingestion_tools/api/turn_bq/requests/statuses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_statuses_by_updated_at(
2424
}
2525

2626
status_generator = get_paginated(
27-
self.client, url, page_size=100, **params
27+
self.client, url, page_size=1000, **params
2828
)
2929

3030
status = concatenate(status_generator)

0 commit comments

Comments
 (0)