-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Improve collection lookup #30
Improve collection lookup #30
Conversation
If null-collection have ref, we can? new Mongo.Collection(null, { ref: 'test' });
Mongo.Collection.get('test'); // ok
// but
Mongo.Collection.get(null); // still work? or does not add to nullInstances? |
You can go to my temp c9 to see the process. |
We should keep the same format as before when you call |
Oh, my fault. |
Temp link tests |
What are we waiting for? The delay on my part? |
Yeah did you want to take care of the above items? |
Already... ? |
May be add to collections |
This will be determined by what name it is possible refer to the collection if the collection is lost. |
What else can I do? |
Hey @ivansglazunov would you mind pushing so I can take a look? |
Of course. I just thought that maybe have not made my part. What about suggestions about |
I'm not sure why you would need to store it against the collection, what is your thinking on that? |
shuttler:ref Adding |
Hmm.. that seems to be unrelated. What I'm talking about is storing |
Important point: |
I think we should probably just stick with the performance improvement to the |
It's a pity. I would like to here was a functional. Universal namespace of collections. At least my team will use this. At a minimum, this functionality does not harm. However, i will have to make his own version of this library, if your version does not have these capabilities. |
The problem is that it is impossible to implement this functionality in addition to that package in separate package. Either build this package or rebuild to other package. |
The key is that there should be clear benefits to these extra features to anyone who uses the package (beyond just your team), if you can sell me on the practical use-cases it will open up, and why it'll be useful, then I'll reconsider :) |
It's an easy and beautiful to realize the link between multiple documents in different collections. These collections can be either local or remote. In the application can always be convenient to find on their by |
And how are you going to look for null collections without ref at all? Then it is better to cut out all the opportunity to look at him. Or add a search through all the options. Personal... |
It may be confusing your attribute in the collection? So do many of the library, for example collection2. |
If there is a positive decision, and will be happy to supplement the documentation. :) |
Sounds like you're building something a bit different overall to what the core of this package provides, I think it makes sense for you to build it yourself. I don't see any need to mimic the same name and API as here though if it's providing a different feature set. |
The task is one and the same. Namespace for collections. |
Remember the typical use case that I've seen with this package is usually for some kind of admin interface or low-level tool where they require the ability to show a list of collections. What's the use-case(s) for the extra features you're asking for? You say most people will have a use for them, but why? That's what I'm interested in. |
So there are two options:
|
It is not a question of my projects or applications. It is only a matter of null-collections. |
And a separate package |
Okay, so null collections are not currently supported, that we both agree on, but as I said earlier I have never seen an issue pop up relating to this being a problem and therefore solving a problem that doesn't exist is never a great idea. You seem to have a requirement to have the ability to reference null collections, but you still haven't explained the practical reason why that would be useful. The reason why I ask is that I've never had the need to grab the collection based on a document fetched from it (shuttler:ref), and I've worked on a lot of Meteor applications! |
As an example:Unload from the server 2-5 server-collections of 50-100 documents. Edit them, without synchronization. Save thereafter. I do not mind divide that on several packages, in principle, already have an understanding of how to do it. This way you think is correct? |
In any case, thanks for improved performance. ;) |
Really this is such a simple package (especially now since it's using collection-extensions) that I feel like if you run into a requirement like yours, it's simple enough for anyone to hack together their own version of it specific to their application and then just use that instead. Though if you were to publish your own version, since the features would be different it would make sense to publish under a different name as to not confuse people with regards to their function. I think I'd just place all of the functionality within the The performance improvement PR makes sense, I'll look into getting that merged soon, thanks! |
Yeah, I guess you're right. I do not need to create wrappers. Thank you! |
mongo test-packages