Will you consider creating a category for “performance”? Performance posts are scattered around core, Uncategorized, deployment and other categories because there is no clear category for them. I’d be happy to migrate existing posts to the new category if you like.
2 Likes
sashko
February 27, 2017, 7:27am
3
I think this is an awesome idea! Just created one, let’s see where it goes:
Use this category to talk about performance, whether that’s production page load time, development reload speed, or anything else.
I’d be happy to help migrate performance posts to the new category, but I’d need temporary permission to do that.
there are a lot , but I can’t move any of them, i.e.:
I’m trying to wrap my head around indexing in mongoldb in my meteor app.
Question 1: When exactly is the index performed? Specifically, if I have a simple form that asks for input from the user and upon a button click the query spits out a report of some kind, is the collection first indexed upon the button click, and then the query runs right after the index has finished?
Question 2: How expensive is the build of the index? Put another way, could it be possible that the building of the index …
I’m trying to understand my database indexing. When starting, my server runs:
Videos._ensureIndex(
{
_id: 1,
owner_id: 1,
ts: 1,
likesCount: 1,
repostsCount: 1,
published: 1,
isPrivate: 1,
readyToPlay: 1,
order: 1,
favoritesCount: 1,
deleted: 1,
isSlice: 1,
},
{
name: 'videoIndex',
}
);
When I connect to my mongo shell and run db.videos.getIndexes() I get:
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",…
Hello!
I have a rather write heavy collection in my app, and I’m sending down the latest 30 additions to the client from the server via a subscription. There are around 10-15 inserts a second at current peak times.
Meteor.publish("items", function (limit) {
return Items.find({}, {
sort: {
createdOn: -1
},
limit: limit
}
});
Session.setDefault("limit", 30);
Tracker.autorun(function () {
Meteor.subscribe("items", Session.get("limit"));
});
That …
How many documents are you sorting on? I’m curious as to why your method takes 3 seconds! Are you waiting in your method on an async function (besides the query)?
I don’t mind helping out, if you want to point me at 'em (I’ve recategorised those you listed).
1 Like
OK! I’ll round up some more in a bit.
1 Like