Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clients): expose waitForTasks to batch helpers [skip-bc] #4030

Merged
merged 28 commits into from
Oct 28, 2024

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Oct 25, 2024

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-3107 https://algolia.atlassian.net/browse/DI-3122

Changes included:

follow up of #3565
closes algolia/algoliasearch-client-python#574

forward waitForTasks option to the saveObjects and deleteObjects methods to ease the usage

  • csharp
  • go
  • java
  • javascript
  • kotlin
  • php
  • python
  • ruby
  • scala
  • swift

@shortcuts shortcuts self-assigned this Oct 25, 2024
@algolia-bot
Copy link
Collaborator

algolia-bot commented Oct 25, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 603fc6ba267c08892d07426f2f97464ce712342b
🍃 Generated commit 608c9103299d03e0dca37db7cdff2c920f0305fb
🌲 Generated branch generated/feat/saveObjects-waitForTask
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 1673
go 1648
php 1519
csharp 1358
java 1144
python 1064
ruby 891
swift 760

@shortcuts shortcuts changed the title feat(clients): expose waitForTasks to batch helpers feat(clients): expose waitForTasks to batch helpers [skip-bc] Oct 25, 2024
@shortcuts shortcuts marked this pull request as ready for review October 25, 2024 14:03
@shortcuts shortcuts requested a review from a team as a code owner October 25, 2024 14:03
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

* @param waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions. (optional)
*/
public <T> List<BatchResponse> saveObjects(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add some indentation pls ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied from the code output directly

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow I didn't realize this file was 1000 lines long

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

me neither ahaha 55 functions!!

@shortcuts shortcuts enabled auto-merge (squash) October 28, 2024 15:30
@shortcuts shortcuts merged commit 7f5fe6b into main Oct 28, 2024
28 checks passed
@shortcuts shortcuts deleted the feat/saveObjects-waitForTask branch October 28, 2024 15:58
algolia-bot added a commit that referenced this pull request Oct 28, 2024
… (generated) [skip ci]

Co-authored-by: Clément Vannicatte <[email protected]>
algolia-bot added a commit to algolia/algoliasearch-client-csharp that referenced this pull request Oct 28, 2024
algolia-bot added a commit to algolia/algoliasearch-client-java that referenced this pull request Oct 28, 2024
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Oct 28, 2024
algolia-bot added a commit to algolia/algoliasearch-client-kotlin that referenced this pull request Oct 28, 2024
algolia-bot added a commit to algolia/algoliasearch-client-python that referenced this pull request Oct 28, 2024
algolia-bot added a commit to algolia/algoliasearch-client-ruby that referenced this pull request Oct 28, 2024
algolia-bot added a commit to algolia/algoliasearch-client-scala that referenced this pull request Oct 28, 2024
algolia-bot added a commit to algolia/algoliasearch-client-swift that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Cannot wait for objects to finish indexing after save_objects()
3 participants