-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Reactivity of the table with a mongo view as collection #417
Comments
I've found a solution, but I'm not sure if that was a good idea. :0D I downloaded the source code and have put it into a package folder in my source code. That made meteor use my local code and not that from atmosphere. Then I added one line at code line at line 119 in server/main to the updateRecords function. Now it looks like this:
@aldeed Can this become a performance issue? |
Mmmhhh... At least it solves half my problem... If I update data that is not connected with the selector, I get no update... |
Done! :0D I've changed the other publish function too, also changed my code from the first posting and added an option to activate the new behavior. :0) I work with polling now... I don't know if it is a good idea, but it works for now. If someone has some thoughts about how that affects performance, I would be very glad. :0D Here are my additions to the publish functions: First 'tabular_genericPub', here I changed the options handed over to the collection.find()
On the 'tabular_getInfo' publish function, I added the option too, since the old code works on standard collections. :0D Now it looks like this:
|
Hej hej! :0D
I hope you can help me.
I've set up a table that has a mongo view as the collection option.
All needed collection fields are either in the columns data or in extraFields...
My selector uses one of those fields to select the visible entries. I named this field 'hidden'...
For my example lets assume I have 2 entries in my list and change the hidden value of one of those to true.
Now it needs some seconds to switch the count from "Showing 1 to 2 of 2 entries" to "Showing 1 to 1 of 1 entries"... But the hidden entry stays visible until I change the values of the selector or the route of the program...
Have I done something wrong? Is it a bad idea to use views as collections? What else could I do to get merged data from multiple collections into a single table and keep the data sortable. :0D
Thank you in advance for your help,
desperately Robert
The text was updated successfully, but these errors were encountered: