entity icon indicating copy to clipboard operation
entity copied to clipboard

Legal API - Search Endpoint causing MBR to Timeout

Open JazzarKarim opened this issue 1 year ago • 1 comments

After we enabled the easy legal name fix feature flag, if there are a lot of firms, the MBR is timing out: image (4).png

The reason is, the search endpoint uses the slim json. The slim json, after the FF was enabled, has the alternateNames array. The alternateNames array uses a function to get them. That's probably what's causing the issue when lots of firms are there.

Need to handle:

  • [x] Investigate/Fix the issue
  • [x] Verify that loading is faster
  • [x] Update unit tests if needed

JazzarKarim avatar Jun 26 '24 20:06 JazzarKarim

The search request is taking less time now. The user with huge entities list is taking 3.5 -5 seconds. Verified in Dev

Screenshot 2024-07-12 at 12.09.07 PM.png

vishnup0422 avatar Jul 12 '24 19:07 vishnup0422