Try deleting all master merchant data files (MMxxData.lua) while the game is not running and let them regenerate from history.
Configure master merchant to only keep a limited amount of data. Older data is worthless and only slows the game down. If you really want to keep older data, use
Guild Sales Assistant.