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

PHPLIB-114: Implement GridFS specification #57

Closed
wants to merge 24 commits into from

Conversation

williambanfield
Copy link
Contributor


public function stream_write($data)
{
echo strlen($data). "\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

debug typo alert

@jmikola jmikola changed the title WIP for GridFS Spec [WIP] PHPLIB-114: Implement GridFS specification Dec 11, 2015
<?php
namespace MongoDB\GridFS;

class BucketReadWriter
Copy link
Member

Choose a reason for hiding this comment

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

Let's fold this class and its methods into the Bucket class, since that's where the spec expects to find these methods.

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 class still exists, but is no longer called from anywhere. Just keeping it around until we're sure we're done with it.

* @param array $options Additional options
* @return Cursor
*/
public function find($filter, array $options = [])
Copy link
Member

Choose a reason for hiding this comment

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

Per #57 (comment), I think we should default $filter to an empty array.

@prolic
Copy link

prolic commented Feb 4, 2016

Can't wait for it ;) Good work!

@prolic
Copy link

prolic commented Feb 4, 2016

Any benchmarks for performance comparison from this lib to usage with legacy driver grid fs implementation?

@jmikola
Copy link
Member

jmikola commented Feb 12, 2016

@prolic: Not yet. We're certainly aiming to do some before this gets released in 1.1. There is actually a cross-driver benchmark specification that @derickr has started implementing for the old/new drivers, which also includes tests for GridFS operations.

I'm currently preoccupied with fixing some PHPC issues (as is @derickr with getting HHVM 1.1.0 released); however, I should be returning to PHPLIB work once PHPC 1.1.3 is released and this is high on my list to merge down and begin cleaning up and benchmarking.

@rexxars
Copy link

rexxars commented Mar 1, 2016

Anything we can do to progress this PR any further? Library doesn't feel complete without GridFS support...

@edast
Copy link

edast commented Mar 2, 2016

do you have preliminary date, when this PR will be merged?

jmikola added a commit that referenced this pull request Mar 14, 2016
@jmikola
Copy link
Member

jmikola commented Mar 14, 2016

Manually merged in aef27f0, which is now the 1.1.x-dev branch alias. I still intend to take another pass at the merged code and apply some refactoring before a 1.1.0 release (no ETA on that), but it's technically merged if you would like to experiment with it.

@jmikola jmikola closed this Mar 14, 2016
@jmikola jmikola changed the title [WIP] PHPLIB-114: Implement GridFS specification PHPLIB-114: Implement GridFS specification Mar 17, 2016
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.

None yet

8 participants