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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:44:42+00:00 2026-06-05T05:44:42+00:00

After using a myisam for years now with 3 indexes + around 500 columns

  • 0

After using a myisam for years now with 3 indexes + around 500 columns for Mio of rows, I wonder how to “force” mongodb to store indexes in memory for fast-read performance.

In general, it is a simply structured table and all queries are WHERE index1=.. or index2=… or index3=.. (myisam) and pretty simple in mongodb as well.
It’s nice if mongodb is managing the index and ram on its own.
However, I am not sure if it does and about the way mongodb can speed up these queries on indexs-only best.

Thanks

  • 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-05T05:44:43+00:00Added an answer on June 5, 2026 at 5:44 am

    It’s nice if mongodb is managing the index and ram on its own.

    MongoDB does not manage the RAM at all. It uses Memory-Mapped files and basically “pretends” that everything is RAM all of the time.

    Instead, the operating system is responsible for managing which objects are kept in RAM. Typically on a LRU basis.

    You may want to check the sizes of your indexes. If you cannot keep all of those indexes in RAM, then MongoDB will likely perform poorly.

    However, I am not sure if it does and about the way mongodb can speed up these queries on indexs-only best.

    MongoDB can use Covered Indexes to retrieve directly from the DB. However, you have to be very specific about the fields returned. If you include fields that are not part of the index, then it will not return “index-only” queries.

    The default behavior is to include all fields, so you will need to look at the specific queries and make the appropriate changes to allow “index-only”. Note that these queries do not include the _id, which may cause issues down the line.

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

Sidebar

Related Questions

I've been using D for around a month now after using other languages such
After using PHP for a while now, I've noticed that not all built-in PHP
after using own custom cms for over 6 years, I decided to go for
I'm currently evaluating eclipse after using Textmate for all my development for many years.
I'm in the process of learning ExtJS after using JQuery for years. I like
I am using the MySQL Workbench to alter some huge (Millions of rows) MyISAM
After using this tool dating from 2002 the past years, I felt the need
After using AS2 for several years, I'm getting started with writing applications in AS3
After using .NET for several years, I've spent the last few months in the
After using batch files for many years I was surprised to discover that the

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.