NAM-APJATEL-BACKEND/usecase
unknown 3d5ce0dc72 perf: skip geocoding on list endpoints, add in-memory cache
- GetAllDeviceDetails, GetDevicesWithoutConnections, GetDevicesWithoutTowers
  now pass nil geocoder to avoid Nominatim calls on list requests.
  This reduces GET /device-details response time from ~2 minutes to <1s.
- Added sync.Map cache to nominatimGeocoder so repeated calls for the
  same coordinates (e.g. GetDeviceDetailsByID) hit cache instead of
  Nominatim, preventing HTTP 429 rate limit errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 12:19:52 +07:00
..
activity_logs_usecase.go Adding New Endpoint for register and user management 2025-06-19 13:10:45 +07:00
auth_usecase.go Adding New Endpoint for register and user management 2025-06-19 13:10:45 +07:00
backbone_usecase.go fixing logical error 2025-06-23 11:13:27 +07:00
cable_connections_usecase.go adding bulking for images, devices, and add cable connections logics 2025-10-10 17:14:16 +07:00
count_assets_usecase.go adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
devicePort_usecase.go adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
device_details.go perf: skip geocoding on list endpoints, add in-memory cache 2026-04-11 12:19:52 +07:00
device_inspection.go adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
device_usecase.go adding bulking for images, devices, and add cable connections logics 2025-10-10 17:14:16 +07:00
fishbone_usecase.go fix logical error 2025-06-23 11:12:33 +07:00
nearest_device.go adding nearest device for towers 2025-06-18 16:42:03 +07:00
olt_usecase.go adding olt 2025-06-23 10:21:00 +07:00
tower_usecase.go adding for towerID response and request 2025-06-24 15:11:42 +07:00
users_usecase.go fixing validation for username and full name 2025-06-22 17:19:18 +07:00