Spotlight · macOS process
mdbulkimport on Mac: what it is, why it appears after updates, and how long it takes to finish
mdbulkimport is a Spotlight helper that indexes large batches of items in one go, mostly Mail, Messages, Notes and other databases that hold thousands of entries. It shows up after a macOS update, a migration from another Mac, a Time Machine restore, or when Spotlight rebuilds its index, and it runs at 50 to 100 percent CPU for anywhere from ten minutes to a couple of hours depending on how much mail and history you have. Then it exits and does not come back until the next big batch. Leave it alone; quitting it just makes Spotlight start the batch again.
- What it is
- Spotlight's bulk importer, part of the Metadata framework inside CoreServices. It handles big batches that mdworker would take too long on one by one.
- Normal
- Absent most of the time. After an update or migration, 50 to 100 percent CPU for 10 minutes to 2 hours, then gone.
- Not normal
- Running at high CPU for more than a day, or returning every hour. Usually a volume Spotlight cannot finish indexing.
- Safe to quit?
- It relaunches and restarts the batch. Let it settle instead.
- The one safe fix
- Wait with the Mac plugged in and awake. If it runs past a day, exclude the problem volume in Spotlight settings and re-add it.
On this page9 sections
What mdbulkimport does
Spotlight has a few different workers. mdworker indexes files one at a time as they change. mds_stores holds the index itself. mdbulkimport is the one for jobs that are too big for the file-by-file path: a mailbox with 80,000 messages, a Messages history going back years, a Notes database, a Photos library's metadata. Instead of launching a worker per item, Spotlight hands the whole batch to mdbulkimport, which reads through it in one pass and writes the results into the index.
You will see it in Activity Monitor only when there is a batch to do. On a Mac that has been running the same macOS for months, it may not appear at all. On the Apple Community thread quoted below, two regulars explained it in a sentence each: it is an Apple framework for indexing files used by Spotlight, and it is the importer that adds file metadata to Spotlight. That is the whole story. The binary is at /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdbulkimport, on the sealed system volume, and it runs as your user.
Why mdbulkimport is using CPU right now
Something handed Spotlight a big batch. The usual triggers:
- A macOS update. Major updates change the index format or the importers, and Spotlight re-imports the big databases. This is the most common sighting and it is why mdbulkimport shows up next to mds_stores in the first hours after an upgrade.
- Migration or a Time Machine restore. Everything on the new Mac is new to its index. Mail and Messages, which hold the most items, go through mdbulkimport.
- A Spotlight index rebuild. If you dragged a volume into the Spotlight privacy list and out again, or used a tool that resets the index, the bulk importer runs for every big database on it.
- A large mail import. Adding an account with years of history to Mail, or rebuilding a mailbox, hands tens of thousands of messages to Spotlight at once.
- A big external drive. Plugging in a drive with a mail archive, a Photos library or a database that Spotlight has not seen starts a batch for it.
- A stuck batch. Rare, but if a database is damaged or a volume disconnects mid-import, Spotlight can retry the batch repeatedly. That is the case where it runs past a day.
What normal looks like
The useful measure is how long it stays, not how high it goes:
- Update or migration finishesmds_stores and mdworker start. mdbulkimport appears when Spotlight reaches Mail, Messages or Notes.
- First 10 to 30 minutes50 to 100 percent CPU. The fan may come on. Spotlight search results for mail are incomplete.
- 30 minutes to 2 hoursStill busy if you have a large mail archive or long message history. Normal.
- Batch completemdbulkimport exits. It will not reappear until the next big batch.
- Still running after 24 hoursA stuck batch. Check for a disconnected or damaged volume, then exclude and re-add it in Spotlight settings.
Two things make a normal run feel longer. Sleep pauses indexing, so a MacBook that keeps going to sleep takes days to do an hour of work; keep it plugged in and awake for the first evening after an update. And low battery throttles background tasks, which is why Spotlight indexing on a MacBook at 15 percent crawls. Spotlight shows its own estimate: click the magnifying glass in the menu bar and the progress bar at the top of the results says how long is left.
Is it safe to quit mdbulkimport?
Quitting does no damage, but it is pointless. mdbulkimport is launched by Spotlight on demand. Force quit it and Spotlight notes that the batch did not finish and schedules it again, so you have traded a few minutes of relief for a longer total run. Nothing is corrupted, because Spotlight writes the index transactionally, but nothing is saved either.
What you lose while it is incomplete is search. Mail search, Messages search and Spotlight results from those apps stay partial until the import finishes, which is a better reason to let it run than any CPU figure. The verdict from the KB is settle: it finishes on its own and the right move is to let it.
If you landed here because a search result or a pop-up told you mdbulkimport might be a virus, it is not. It is Apple's, it lives on the read-only system volume, and the real risk on that path is the fake "your Mac is infected" pop-ups that use process names like this one to sell a cleaner. Close that page.
What to do, in order
- Check whether something just changed
A macOS update in the last day, a new Mac, a restore, a new mail account, a new external drive. If yes, this is expected and the only action is to wait.
- Look at Spotlight's progress
Click the Spotlight icon in the menu bar and type a letter. If indexing is in progress, a bar at the top of the results shows the estimated time remaining. That number is the honest answer to "how long".
- Keep the Mac awake and plugged in
Indexing pauses in sleep and slows on low battery. Plug in, leave the lid open or set the display to turn off without the Mac sleeping for the evening, and let it finish.
- Unplug a drive it cannot finish
If it has been going for more than a day and an external drive is attached, eject the drive and watch whether mdbulkimport exits. A drive that keeps disconnecting, or an archive on it that Spotlight cannot parse, is the usual stuck batch. The safe way to unplug matters here.
- Exclude and re-add the volume
System Settings, Spotlight, Search Privacy. Drag the stuck volume or folder in, wait a minute, then remove it. Spotlight rebuilds its index for that volume from scratch, which clears a damaged batch. This is the only index reset you need; no Terminal commands.
- Restart if it is still there
A restart clears any wedged state in Spotlight's scheduler. If mdbulkimport returns at high CPU after a restart with no new data on the Mac, that is worth a Software Update check and, failing that, Apple Support.
When to worry
Three signs separate a normal run from a stuck one. First, time: hours after an update are fine, days are not. Second, repetition: finishing and then reappearing every hour means Spotlight keeps retrying the same batch, which points at a damaged database or a flaky drive. Third, company: if mds_stores is also pinned and your disk is nearly full, Spotlight has nowhere to write the index, and freeing space fixes all of it at once.
What is never a sign of trouble: the fan, the warmth, or the battery dip during the first evening after an update. That is the cost of a complete search index and it is paid once. Safe to Quit tracks the importer over hours and tells you whether it is still making progress or has started looping, which is the one thing Activity Monitor cannot show.
Look up another process
mdbulkimport travels with mds_stores, mdworker and corespotlightd, and the one that is highest tells you which part of indexing is running. Type any name from Activity Monitor to get the plain-English version.
What people hit, in their words
“mdbulkimport is an Apple framework for indexing files used by Spotlight.”
“It's part of Spotlight, the importer that adds file metadata to spotlight”
Questions people ask
What is mdbulkimport on Mac?
mdbulkimport is a Spotlight helper that indexes large batches of items at once: Mail messages, Messages history, Notes, and other databases with thousands of entries. It lives inside Apple's Metadata framework in CoreServices and runs only when Spotlight has a big batch to do, typically after a macOS update, a migration, a restore or an index rebuild. When the batch finishes it exits.
How do I check if my Mac has malware?
Not by process name. mdbulkimport, mds_stores and the other Spotlight processes are Apple's and live on the sealed system volume. macOS runs XProtect in the background and removes known malware on its own. If you want a second check, Apple's own guidance is to review Login Items and Extensions in System Settings and remove anything you did not install. A pop-up saying your Mac is infected is itself the scam; close the page.
Can I delete everything on the Activity Monitor on a Mac?
No, and Activity Monitor cannot delete anything; the X button quits a process, it does not remove it. Most of the list is macOS itself, and system processes like mdbulkimport relaunch as soon as they are quit. The safe approach is to quit only apps you recognize that are misbehaving, and leave processes you do not know running. The Activity Monitor guide on this site explains what each column means.
Does Apple have a built-in virus scan?
Yes. XProtect checks downloaded and launched software against known malware signatures and blocks matches, and XProtectRemediator scans the Mac in the background and removes known infections. Both update silently without a macOS update. There is no scan button to press; it runs on its own. The XProtectService page on this site covers what it looks like in Activity Monitor.
How long does mdbulkimport take?
Ten minutes to two hours for most people after a macOS update, longer with a very large mail archive or years of Messages history. Spotlight shows a time estimate at the top of its results while indexing runs. It pauses in sleep and slows on low battery, so a MacBook left asleep can take days to finish an hour of work. Past a full day of continuous running, treat it as stuck.
Sources and further reading
- Have i been hacked by mdbulkimport? Apple Support Community, Nov 2023. The quotes above and the malware question this page answers.
- mdbulkimport Path and purpose of the binary.
- Spotlight indexing status and privacy settings Apple's guide to Search Privacy, the only index reset this page recommends.
- Protecting against malware in macOS Apple Platform Security on XProtect and XProtectRemediator.