You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed odd behavior that seems to be affecting all of my queries, but it only seems to be occurring when I open multiple tabs, also using Vue in my app.
The only complexity at all in my queries is I use "embody" to add the users organizationId to the query. Example:
It's functioning completely normally if I only have a single tab open, even if I navigate quickly between "View Product" pages which use this query.
If I open multiple tabs, I noticed the CPU/ram on my server shooting to maximum, and after a little research, it seemed that rather than filtering, it's returning the ENTIRE collection of products. According to the APM, the filter is {}:
I added some console.log's on the client prior to calling the query, to make sure that the route had correctly retrieved the id from the URL, and that has been working correctly:
In the embody I added a console.log at the end of the embody function to log the filters and params being passed, and according to the server they're being received properly. It looks like the embody function properly has the filters...
But then the APM confirms that it's querying the ENTIRE collection, and this is the data being returned to the client:
No idea why the filters aren't applying. The argument is being sent with the query, embody is properly receiving it and applying it to the body.$filters... Yet it's still querying the entire collection.
I've tested this with other pages as well (Orders page/order view query, etc) and the same thing is happening. So it's not exclusive to any specific page.
Any suggestions or ideas as to why the filters aren't applying?
The text was updated successfully, but these errors were encountered:
I've noticed odd behavior that seems to be affecting all of my queries, but it only seems to be occurring when I open multiple tabs, also using Vue in my app.
The only complexity at all in my queries is I use "embody" to add the users organizationId to the query. Example:
`embody(body, params) {
It's functioning completely normally if I only have a single tab open, even if I navigate quickly between "View Product" pages which use this query.
If I open multiple tabs, I noticed the CPU/ram on my server shooting to maximum, and after a little research, it seemed that rather than filtering, it's returning the ENTIRE collection of products. According to the APM, the filter is {}:
I added some console.log's on the client prior to calling the query, to make sure that the route had correctly retrieved the id from the URL, and that has been working correctly:
In the embody I added a console.log at the end of the embody function to log the filters and params being passed, and according to the server they're being received properly. It looks like the embody function properly has the filters...
But then the APM confirms that it's querying the ENTIRE collection, and this is the data being returned to the client:
No idea why the filters aren't applying. The argument is being sent with the query, embody is properly receiving it and applying it to the body.$filters... Yet it's still querying the entire collection.
I've tested this with other pages as well (Orders page/order view query, etc) and the same thing is happening. So it's not exclusive to any specific page.
Any suggestions or ideas as to why the filters aren't applying?
The text was updated successfully, but these errors were encountered: