Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7905075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:19:43+00:00 2026-06-03T10:19:43+00:00

The Meteor Collection Object_Id does not appear to be the Mongo BSON Object_Id. This

  • 0

The Meteor Collection Object_Id does not appear to be the Mongo BSON Object_Id. This appears to be true based on conversation in IRC and https://github.com/meteor/meteor/blob/master/packages/uuid/uuid.js

Therefore, can it still be used to…

  1. Use for ascending order?
  2. Use for extracting insertion times?
  3. Sort by ascending order, similar in nature to #1 and #2 though combined in scope of inquiry.

I believe this to be an important question for many that are considering building an application that requires optimization and is being designed according to Mongo docs. See http://www.mongodb.org/display/DOCS/Optimizing+Object+IDs for more info.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:19:48+00:00Added an answer on June 3, 2026 at 10:19 am

    Heres the current implementation:

    // RFC 4122 v4 UUID.
    LocalCollection.uuid = function () {
      var s = [];
      var hexDigits = "0123456789abcdef";
      for (var i = 0; i < 36; i++) {
        s[i] = hexDigits.substr(Math.floor(LocalCollection.random() * 0x10), 1);
      }
      s[14] = "4";
      s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
      s[8] = s[13] = s[18] = s[23] = "-";
    
      var uuid = s.join("");
      return uuid;
    }
    

    from: https://github.com/meteor/meteor/blob/bf46f04024251dea7a547c48d01d8032b7838d10/packages/minimongo/uuid.js

    so the answer is, nope. It’s mostly random.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why this code shows 0? Shouldn't it return 1? Messages = new Meteor.Collection(messages); if
Perhaps this structure is not a good fit for Meteor, or maybe I'm thinking
Is a Mongo-style db.collection.group(...) query possible in Meteor, yet? I was hoping i could
This extremely simple Meteor app is throwing a Template is not defined error on
Suppose I write: new Meteor.Collection(foos); new Meteor.Collection(bars); Is there an API for accessing those
Im working with the Meteor framework and came by this error when I tried
Consider the following: >> meteor mongo > show collections; pages system.indexes > db.pages.count(); 2
I have a function that receives a Meteor Collection object (that generated by new
This very simple app is not working. My list is not showing up. Why?
I have the code datas = new Meteor.Collection(datas) var data = datas.findOne('101abcde1f2345ac00000001') if (Meteor.is_client)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.