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 8104411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:49:57+00:00 2026-06-05T23:49:57+00:00

Ok let’s first look at a screen shot. This is a screen shot of

  • 0

Ok let’s first look at a screen shot. This is a screen shot of a text file we call it VCF file. How many rows it might have? Maybe 100,000 rows of things like this:

enter image description here

I am totally new and novice to MongoDB so I thought of a schema like this:

enter image description here

So for example notice REF in that text file is a Key/Value in my schema. But like I said it might have 200,000 rows…
So:

  1. Are Arrays still a good thing I can use? storing 200,000 members in that array?
  2. How powerful I can query on it? so in the text file we have rows, for example that #CHROM20 in POS of 14370 has a REF of “G” and ALT of “A” … so with my Schema can we find and return it? Let’s say we say search for patients that have “G” in their REF field, so are MongoDB queries powerful enough to search and return such a result?
  3. Is it a bad schema? Do you have better recommendations/advice?
  4. Any sample query could you give for my qquesry in question will be so helpful to give me some ideas..
  • 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-05T23:49:58+00:00Added an answer on June 5, 2026 at 11:49 pm

    Sorry for the very slow reply, I had left for holiday when you replied. The following syntax achieves the desired outcome.

    > db.refs.insert({ref:[A,T,ATC,G]})
    > db.refs.insert({ref:['A','T','ATC','G']})
    
    > db.refs.findOne()
    {
        "_id" : ObjectId("4fda21bb8a807d87a65aba37"),
        "ref" : [
            "A",
            "T",
            "ATC",
            "G"
        ]
    }
    > db.refs.insert({ref:['TCG','TA']})
    > db.refs.find()
    { "_id" : ObjectId("4fda21bb8a807d87a65aba37"), "ref" : [ "A", "T", "ATC", "G" ] }
    { "_id" : ObjectId("4fda22438a807d87a65aba38"), "ref" : [ "TCG", "TA" ] }
    
    
    > db.refs.find({ref :{$all : ['G']}})
    { "_id" : ObjectId("4fda21bb8a807d87a65aba37"), "ref" : [ "A", "T", "ATC", "G" ] }
    

    Is this what you had in mind?

    A big concern in schema design is avoid the 16MB document limit. While you can have as many documents as can be addressed with 64 bit address space, I don’t know how your document is likely to grow. This restriction may necessitate that you break out some of the fields into other documents that you reference.

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

Sidebar

Related Questions

Let's say I have a text file composed like this ##### typeofthread1 ##### typeofthread2
Let's suppose I have an XML file like this: <?xml version=1.0 encoding=ISO-8859-1?> <MIDIFile> <Event>
Let's say we have this code: <form action='' method='POST' enctype='multipart/form-data'> <input type='file' name='userFile'><br> <input
Let’s say I have a number like 0x448 . In binary this is 0100
Let's say on a page I have alot of this repeated: <div class=entry> <h4>Magic:</h4>
Let's say I can call a method like this: core::get() . What is the
Let's say I have the following text: (example) <table> <tr> <td> <span>col1</span> </td> <td>col2</td>
Let's say I have an facebook application running using the JS SDK. First user
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Let's say I have this code: <p dataname=description> Hello this is a description. <a

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.