PRICES for many primary commodities in world markets posted substantial gains over the past decade—even after taking into account the declines during the global crisis. For countries that rely heavily on commodity revenues, such price booms are a bonanza that their governments can either spend or save and use to reduce debt.