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

2 Question #14

Open
fehmi opened this issue Dec 18, 2016 · 2 comments
Open

2 Question #14

fehmi opened this issue Dec 18, 2016 · 2 comments
Labels

Comments

@fehmi
Copy link

fehmi commented Dec 18, 2016

Hello,

You are saying this is for small projects. Can I ask how small? Can you please give some numbers?

And the important one. How can I query for a json-object nested in an array and how?

Thank you very much for this incredible schemaless database.

@aheinze
Copy link
Member

aheinze commented Dec 19, 2016

hi,

  1. it depends on the size of an entry (document). for now I had no issues with 1000-3000 entries per collection

  2. you can always use a callback function to search within a document:

$collection->find(function($document) {
    return isset($document["items"][0]['anykey']);
});

Greets,
Artur

@fehmi
Copy link
Author

fehmi commented Dec 19, 2016 via email

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

No branches or pull requests

2 participants