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

(WIP) V3 #133

Closed
wants to merge 133 commits into from
Closed

(WIP) V3 #133

wants to merge 133 commits into from

Conversation

ravanscafi
Copy link
Contributor

@ravanscafi ravanscafi commented Oct 18, 2018

To-do

Dependent Packages

Maybe (not breaking changes, so that can be implemented later)

@ravanscafi ravanscafi self-assigned this Oct 18, 2018
@leroy-merlin-br leroy-merlin-br deleted a comment Oct 19, 2018
@leroy-merlin-br leroy-merlin-br deleted a comment Oct 19, 2018
@leroy-merlin-br leroy-merlin-br deleted a comment Oct 19, 2018
ravanscafi and others added 2 commits October 20, 2018 13:18
The PHP driver uses libmongoc's single-threaded client mode, which does not implement connection pools. There is also no way to implement your own connection pooling using this driver.

Each single-threaded libmongoc client object maintains at most one socket connection per mongod or mongos server. The relationship between MongoDB\Driver\Manager objects and libmongoc client objects is discussed in Connection Handling in the driver documentation.

Connection pools should not be needed for any single-threaded application, unless you're using an async PHP framework (e.g. Amp, ReactPHP). In those cases, you'd probably need to implement your own driver as we provide no way to integrate libmongoc's IO with a PHP event loop. Multi-threaded PHP applications (e.g. pthreads, forking) are not supported by the driver.
mongodb/mongo-php-driver#688 (comment)
composer.json Outdated Show resolved Hide resolved
This improves testing timestamps and id generation on applications using mongolid.
@carusogabriel
Copy link
Contributor

@ravanscafi What about implementing a last() method? The opposite for first().

public function syncOriginalDocumentAttributes()
{
try {
$this->originalAttributes = unserialize(serialize($this->getDocumentAttributes()));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note to self: this takes way too many memory, think about alternatives or drop it altogether.


- PHP**7**
## Requirements
- PHP **7.1** or superior
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- PHP **7.1** or superior
- PHP **7.1** or higher

Edukazan and others added 9 commits August 26, 2020 16:22
* Upgrade illuminate dependencies

This upgrade is necessary to make mongolid compatible with laravel 7

* Revert "Upgrade illuminate dependencies"

This reverts commit ea0df63.

* Add Illuminate ^7.26 dependencies

Add Illuminate ^7.26 dependencies

* Revert "Add Illuminate ^7.26 dependencies"

This reverts commit e2ffe3a.

* Add Illuminate 7 dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants