In this study , ultrasound-guided IFB provided lesser dynamic pain scores during the first postoperative day and reduced use of analgesics for 1 week compared with spinal anesthesia after inguinal hernia repair .