-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Some Publish Composite publications not working (renamed as tracker issue was redherring) #352
Comments
I see you are using blaze. Did you wait for the sub to be ready? |
Thanks. Yes Blaze. Mmmm. I have a bunch template |
ok, the tracker exception - may be a redherring (need to dig more)... I put put some debug on the server and it's ( Update: mmm... when I run this on Galaxy on test server... alll works, so not sure if something to do with NGROK trying to connect to DigitalOcean? That said, some of my publications have stopped being reactive - the data is there on first visit but not reactive. trying to debug |
Mmm.. I think the reactivity is borked as I am using bulk insert?
Is there a supported way to to bulk operations? |
Indeed If you still need Meteor-esque granular per-document reactivity you could use the methodology documented in Outside Mutations about handling updates to Mongo outside of your app. As that's how bulk inserts/updates are treated with regard to Meteor. It's as if they didn't happen in your app - and some outside source added them. Also keep in mind when doing bulk inserts they won't get your Simple Schema auto values or Meteor |
ok great, thanks @evolross |
@evolross mmm any guesses on what the performance would be like of :
? We used Bulk insert to try and reduce CPU utilization... just wondering what the extra redis.publishes will do? ps. I will try and resolve with Vent first |
This should be a non-issue. As you're probably not displaying/using 1000 to 10,000 documents on the client right? If not, then there's no need to worry about publishing them. Just add them to your database via bulk insert so they're on the server and then re-fire your subscription to get however many you actually need on the client. If this is over 100 documents you should probably rethink your client functionality, pub/sub, and UI perhaps. |
yes right... each client only needs a small subset (< 20) notifications |
I have installed redis locally and connected to
the issue is it does not seems to work for some of the publishComposite publications. Wondering if there is some gotcha in the way I have defined those? The weird thing is itworks on my Galaxy server but on on localhost:3000 (development mode). for some of my subscriptions I see specific channels like Should the channel name match the publication name ore the collection name? |
Not sure. I gave up on publish composite along time ago - too many side effects like the above. I've found you can roll your own "composite" publishes using Meteor's |
I am running locally with with Meteor
1.8.2
and NGROKI cranked up a redis instance on DigitalOcean
the first two items in my my
packages
file areWhen my sever starts up I see this on the console:
RedisOplog - Established connection to redis.
My login screen comes up. I can login and some of my collections work... but I am getting this exception in the browser and can see one of the main pub/subs are not working. I cannot see any exceptions on the server console.
In browser console:
Any ideas please?
The text was updated successfully, but these errors were encountered: