Here is my `open collection default template`:
But when i double click at some db's collections, i will get this:
the `.sort({_id: -1})` line is auto commented.
This problem only occurs to some specific db connections, others will obey the template settings.
If the collection "testtesttest1" has no "_id" index, the ".sort({_id:1})" line will be commented.
Could you please show the script result "db.testtesttest1.getIndexes();"?
If the collection "testtesttest1" has no "_id" index, the ".sort({_id:1})" line will be commented.
Could you please show the script result "db.testtesttest1.getIndexes();"?
And i am using the latest version
And i am using the latest version
Thanks for your feedback.
Could you please run the script "db.getCollection("testtesttest1").stats().indexSizes" in the NoSQLBooster and show the result?
Thanks for your feedback.
Could you please run the script "db.getCollection("testtesttest1").stats().indexSizes" in the NoSQLBooster and show the result?
We have worked out a test build to resolve the issue, please download and give it a try.
mac os: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.6-beta.1.dmg
We have worked out a test build to resolve the issue, please download and give it a try.
mac os: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.6-beta.1.dmg
I tried, not solving my problem.
Also i do not think its a problem related to index, cause when i remove the projection in template:
i still get this, it just dont apply the template config. And still the problem only occurs to specific connections.I tried, not solving my problem.
Also i do not think its a problem related to index, cause when i remove the projection in template:
i still get this, it just dont apply the template config. And still the problem only occurs to specific connections.Thank you for your fast feedback.
The reason we check the index is that some collection(e.g. local.oplog.rs) may not have an _id index, which causes the error to open the collection. Your collection has _id index, I don't quite understand why the sort is commented out.
Because it cannot be reproduced locally, tracking problems like this are indeed less efficient. Could you please give me a screenshot including the indexes node like the following picture?
Thank you for your fast feedback.
The reason we check the index is that some collection(e.g. local.oplog.rs) may not have an _id index, which causes the error to open the collection. Your collection has _id index, I don't quite understand why the sort is commented out.
Because it cannot be reproduced locally, tracking problems like this are indeed less efficient. Could you please give me a screenshot including the indexes node like the following picture?
And, If the indexes node has "_id_" child node, please focus to connection tree (left pane), press "CTRL+ALT+SHIFT+F7" to toggle developer toolbar and open the test collection, are there any logged info?
And, If the indexes node has "_id_" child node, please focus to connection tree (left pane), press "CTRL+ALT+SHIFT+F7" to toggle developer toolbar and open the test collection, are there any logged info?
Some commonly used collection, such as "oplog.rs", do not have an _id_ index, but the data set is very large. If you do not comment out the sorting part, it will cause the data set to be opened very slowly, so we have to do so much more.
Some commonly used collection, such as "oplog.rs", do not have an _id_ index, but the data set is very large. If you do not comment out the sorting part, it will cause the data set to be opened very slowly, so we have to do so much more.
Ok, but the problem itself is not about commenting it... You not using my template at all instead of comment sort
Ok, but the problem itself is not about commenting it... You not using my template at all instead of comment sort
I still think you should leave that choice to user of app.... For example if I work with oplog I must choose will I comment the sort or not... And if I dont work with oplog ( and I really never use it ) I must have an option for it to work as I like it...
Also you have a great option not to run query when collection is opened, so I have to run it manually ( which I use ) and in those cases user can choose how app will behave...
And how it is now it looks like I can choose app behaviour. but I cant... Now I've tried to comment everything inside template, and still when I open collection, only sort is commentd, and everything else is not... so it looks like that "Default Code Template" is useless - because whatever I set inside, it doesn't work
Here is an example
I still think you should leave that choice to user of app.... For example if I work with oplog I must choose will I comment the sort or not... And if I dont work with oplog ( and I really never use it ) I must have an option for it to work as I like it...
Also you have a great option not to run query when collection is opened, so I have to run it manually ( which I use ) and in those cases user can choose how app will behave...
And how it is now it looks like I can choose app behaviour. but I cant... Now I've tried to comment everything inside template, and still when I open collection, only sort is commentd, and everything else is not... so it looks like that "Default Code Template" is useless - because whatever I set inside, it doesn't work
Here is an example
Thanks.
Yes, there are implementation issues here, it’s hard to justify the sorting part of your custom script. It might be better to do special processing only for some common unindexed collections (e.g. oplog.rs).
Thanks.
Yes, there are implementation issues here, it’s hard to justify the sorting part of your custom script. It might be better to do special processing only for some common unindexed collections (e.g. oplog.rs).
We have worked out a new test build to resolve this issue, please download and give it a try. In this build, we limit the scope of commenting sorting line to a small number of the special collections (e.g. oplog.rs , system.profiler ...., capped and no _id_ index)
Mac OS: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.1.dmg
Windows: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.1.exe
Linux AppImage: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.1.AppImage
We have worked out a new test build to resolve this issue, please download and give it a try. In this build, we limit the scope of commenting sorting line to a small number of the special collections (e.g. oplog.rs , system.profiler ...., capped and no _id_ index)
Mac OS: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.1.dmg
Windows: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.1.exe
Linux AppImage: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.1.AppImage
Unfortunately it's not working for me. OS is "Win 10 PRO", MongoDB version is "4.0.5"
Here is screenshot, and on it you can see that I have uncommented "sort" and commented "limit", but both of those changes are not applied.
Unfortunately it's not working for me. OS is "Win 10 PRO", MongoDB version is "4.0.5"
Here is screenshot, and on it you can see that I have uncommented "sort" and commented "limit", but both of those changes are not applied.
Also not working for me, nothing changed
Also not working for me, nothing changed
Thank you for your feedback.
We did make a mistake, and the option "Menu->Options->Options That May Affect Performance->Show Database/Collection Stats Tooltip" causes the default code template selection to go wrong. Please turn off this option or give the following new test build a try.
Mac OS: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.2.dmg
Windows: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.2.exe
Linux AppImage: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.2.AppImage
Thank you for your feedback.
We did make a mistake, and the option "Menu->Options->Options That May Affect Performance->Show Database/Collection Stats Tooltip" causes the default code template selection to go wrong. Please turn off this option or give the following new test build a try.
Mac OS: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.2.dmg
Windows: https://s3.mongobooster.com/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.2.exe
Linux AppImage: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.1.8-beta.2.AppImage
I've tested new build, and now it works fine, Thanks a lot for fast fix.
I've tested new build, and now it works fine, Thanks a lot for fast fix.
Working for me, thanks! Waiting for release.
Working for me, thanks! Waiting for release.
Resolved in 5.1.8
Resolved in 5.1.8
Replies have been locked on this page!