I have a performance issue,
to reproduce the problem,
- I made a new react meteor app using meteor version 1.8
- create 9 collections( collection a,b,c,d,e…) with 4000~10000 documents each and create api files like " export default a = new Mongo.Collections(‘a’) " for each collections
- Do Meteor.call(‘test’,(err,res)=>{ }) from the client and see how long it takes to finish the call
- On the server side Meteor.methods({
test(){
return true
}}) - At first it would not take long until the client test call finishes but if you
- import a from ‘./api/a’;
- Do meteor call again, it now would take some time… why?
- import more collections b,c,d,e~
- now the call would take very long time like upto 3~5minutes
- I am not publishing any data + server function should only return true but why is this slowing down my app?
am I doing something wrong??