Skip to content

Conversation

@Jipperism
Copy link
Contributor

@Jipperism Jipperism commented Mar 13, 2025

This PR improves the order invalidation logic in SupabaseDataService in two ways:

  1. It lowers the amount of upserts done, by only updating orders that have their validity or error codes changed. Previously, it was updating all orders that we're checked, resulting in unnecessary cache invalidations
  2. It properly utilizes the checkMakerOrders method to prevent unnecessary calls to the RPC endpoint, which might have been related with our infura issues.

@github-actions
Copy link

github-actions bot commented Mar 13, 2025

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 25.09% (🎯 24%) 1094 / 4360
🟢 Statements 25.09% (🎯 24%) 1094 / 4360
🟢 Functions 62.1% (🎯 59%) 59 / 95
🟢 Branches 72.87% (🎯 72%) 180 / 247
File CoverageNo changed files found.
Generated in workflow #79 for commit 3855f41 by the Vitest Coverage Report Action

@Jipperism Jipperism force-pushed the fix/reduce-number-of-order-invalidations branch from 1f1187d to 48f13b8 Compare March 13, 2025 16:31
@Jipperism Jipperism force-pushed the fix/reduce-number-of-order-invalidations branch from 48f13b8 to 6c3c168 Compare April 4, 2025 14:36
…njob, reduce rpc calls

- lowers the amount of upserts done, by only updating orders that have
their validity or error codes changed. Previously, it was updating all
orders that we're checked, resulting in unnecessary cache invalidations
- properly utilizes the checkMakerOrders method to prevent unnecessary
calls to the RPC endpoint, which might have been related with our infura
issues.
@Jipperism Jipperism force-pushed the fix/reduce-number-of-order-invalidations branch from 6c3c168 to 3855f41 Compare April 4, 2025 14:49
@Jipperism Jipperism merged commit b6a5c3d into develop Apr 7, 2025
1 check passed
@Jipperism Jipperism deleted the fix/reduce-number-of-order-invalidations branch May 17, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants