@baris thank`s a lot! db.objects.find({_key: /^user:\d+/, fbid: {$exists:true}}) - perfect query for me!
dread
Posts
-
It`s hard to take Select Where from nodebb using MongoDb -
It`s hard to take Select Where from nodebb using MongoDbI just want to select users id, where "fbid" not equal " "(is exists).
I try in mongo shell executedb.objects.find({_key:"users:uid"}, {fbid: {$ne: ""}})
Error: error: {
"waitedMS" : NumberLong(0),
"ok" : 0,
"errmsg" : "Unsupported projection option: fbid: { $ne: "" }",
"code" : 2
}and
db.objects.find({_key:"users:uid"}, {$where:"this.fbid != ''"})
show me nothing. What am I doing wrong? thx in advise.
-
Slow page loading on DigitalOcean@yariplus said in Slow page loading on DigitalOcean:
@dread said in Slow page loading on DigitalOcean:
GitHub - Serhey/nodebb-plugin-featured-topics-extended-with-title: Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended
Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended - Serhey/nodebb-plugin-featured-topics-extended-with-title
GitHub (github.com)
Oh.
That is a very ... unorthodox ... way of forking my plugin.
Sorry - I just start to using github. I foget to write fork. Fixed.
-
Slow page loading on DigitalOcean@julian said in Slow page loading on DigitalOcean:
If you go to the
/api
routes... e.g.http://yoursite.tld/api/recent
, is the rest still slow?Definitely seems like some mongo indices are missing though it could really be anyone's guess at this point.
You can re-create the indices by running this in MongoDB after
use
-ing your NodeBB database:db.objects.createIndex({ _key: 1, score: -1 }, { background: true }); db.objects.createIndex({ _key: 1, value: -1 }, { background: true, unique: true, sparse: true }); db.objects.createIndex({ expireAt: 1 }, { expireAfterSeconds: 0, background: true });
Thanks a lot! Now it works like a car on f1!)
-
Slow page loading on DigitalOcean80$ hosting plan. Upgrade node to v6.11.1 and nodebb to v1.6.0. but MongoDb is still loading too long and waiting site in firebug decresed only by 1 sec(
-
Slow page loading on DigitalOceanAs I know DB on the same server with nodebb. and asking about swap. I'll try to increase power of server - mongodb eat to much) thanks - I write here after results.
-
Slow page loading on DigitalOceanNope - no improve performance. Specific - only facebook <!-- Facebook Pixel Code --> and VK pixel code in <head> and google analytics and yandex metrics <scripts> in global footer. but by the firebug - they loads near half a second - but main page and categories load slow.
-
Slow page loading on DigitalOceanThanks for fast answer. Yeap, first loading I understood will be quite slow - but in my case it decrease only to 1 sec for loading other pages after loading main and I can't understand why( theme persona. nodebb version 1.5.3. plugins - standart - with https://github.com/Serhey/nodebb-plugin-featured-topics-extended-with-title https://github.com/Serhey/nodebb-plugin-ns-slugify-fixed-on-edit#readme https://github.com/Schamper/nodebb-plugin-poll#readme https://github.com/iiiyx/nodebb-plugin-share-vk https://github.com/boomzillawtf/nodebb-plugin-youtube-embed#readme
-
Slow page loading on DigitalOceanHi there. please help me to improve the speed of forum based on DigitalOcean hosting with nginx. For now it takes from 5 to 7 sec to loading any page - in firebug it shows that all scripts load fast, and onle main url of forum show wait status near 6 sec. we use MongoDb - its size for now only 52 mb - but its horrible slow - we add indexes - but we win only 1-2 sec. maybe it can be some caching system for this engine? or I need change some setting in admin dashboard, or increase hardware of server? thanks in advise.
-
OneSignal Plugin@aokp how can you do this? nodebb-plugin-onesignal did't work or maybe i create wrong app on onesignal.com
-
[nodebb-plugin-category-sort-by-title] Alphabetical topic sorting.Sorry) it was my own strange bug) somehow I was create topic with null slug and plugin can't reindex topics. Anyway thanks for fast responce!
-
[nodebb-plugin-category-sort-by-title] Alphabetical topic sorting.Fine.cool) I am on v1.5.4.
-
[nodebb-plugin-category-sort-by-title] Alphabetical topic sorting.Hi, after install your plugin after i making re-index from admin dashboard it says me error: TypeError: Cannot read property 'split' of null
at /home/user/nodebb/node_modules/nodebb-plugin-category-sort-by-title/library.js:141:72
and some troubles with pagination for example I had 27 topics in category, but it scroll only to 17. thanks in advise -
Custom Page TitlePlease, tell how can I remove "Home | " only from index page. And how can I modify {browserTitle} on custom route? thanks in advice.