Skip to content

A small upgrade to the v6 #868

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

Merged
merged 35 commits into from
Mar 19, 2019
Merged

A small upgrade to the v6 #868

merged 35 commits into from
Mar 19, 2019

Conversation

saimaz
Copy link
Contributor

@saimaz saimaz commented Mar 18, 2019

No description provided.

@saimaz saimaz merged commit ceea665 into ongr-io:6.0-dev Mar 19, 2019
@saimaz saimaz deleted the upgrade branch March 19, 2019 06:18
/**
* Index alias name. By default the index name will be created with the timestamp appended to the alias.
*/
public $hosts = [
Copy link
Contributor

@alexander-schranz alexander-schranz Mar 19, 2019

Choose a reason for hiding this comment

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

@saimaz Is this a good idea? Its not possible to use environment variables or parameters inside annotation or? same for numberOfShards, ... this is system specific

Copy link
Contributor Author

@saimaz saimaz Mar 19, 2019

Choose a reason for hiding this comment

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

There will be a config which can override index settings. The annotation settings were added to make things more simple. In that case, you won't need any config when someone uses default settings (like the host is 127.0.0.1:9200 and the index alias name is like the class name).

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok, sounds good.

PS: the comment above $hosts looks false.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is why it is still a beta stage :) But if you could test this version and give some feedback I would appreciate it a lot.

Copy link
Contributor

Choose a reason for hiding this comment

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

I will try to test the version at end of the week.

Copy link
Contributor Author

@saimaz saimaz Mar 19, 2019

Choose a reason for hiding this comment

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

At the end of the week, there will be docs written as well I think.

@saimaz saimaz mentioned this pull request Mar 19, 2019
$response = [];

// %X is not very accurate, but better than use counter. This place is experimental for now.
if ($autoCommit && $this->getBulkCommitSize() <= count($this->bulkQueries) % $this->getBulkCommitSize() / 2) {
Copy link

@mjvanmiddelaar mjvanmiddelaar Aug 3, 2020

Choose a reason for hiding this comment

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

This will always return false.

Say bulkCommitSize is 100, count($this->bulkQueries) % $this->getBulkCommitSize() / 2 will always return a float between 0 and 49,5 which is always lower then bulkCommitSize 100

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.

3 participants