Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused graphql fields #1448

Open
wants to merge 17 commits into
base: development
Choose a base branch
from

Conversation

cfaur09
Copy link
Contributor

@cfaur09 cfaur09 commented Feb 6, 2025

Reasoning

Proposed Changes

How to test

Copy link

github-actions bot commented Feb 6, 2025

k6 load testing comparison.
Base Commit Hash: 56d6741
Target Commit Hash: 4b594f0

Metric Base Target Diff
AvgMax9095AvgMax9095AvgMax9095
Mex50.56607.2456.2658.2748.27624.7451.5553.14-4.53% ✅+2.88% 🔴-8.38% ✅-8.81% ✅
Nodes51.711117.4856.2558.8148.66839.4751.3352.89-5.90% ✅-24.88% ✅-8.75% ✅-10.06% ✅
Pool50.57480.5956.3158.2747.88602.9751.4453.02-5.32% ✅+25.47% 🔴-8.65% ✅-9.01% ✅
Tokens50.81552.3856.2158.3548.04512.3651.4853.03-5.46% ✅-7.25% ✅-8.43% ✅-9.11% ✅
Transactions64.382032.8656.9159.9860.351827.9151.8454.40-6.26% ✅-10.08% ✅-8.90% ✅-9.30% ✅
Accounts51.701108.0156.1758.1548.76954.7051.5353.24-5.68% ✅-13.84% ✅-8.25% ✅-8.45% ✅
Blocks56.871202.9857.0760.9253.911189.1652.1354.56-5.21% ✅-1.15% ✅-8.64% ✅-10.44% ✅
Test Run Duration60002.1860003.61

Legend: Avg - Average Response Time, Max - Maximum Response Time, 90 - 90th Percentile, 95 - 95th Percentile
All times are in milliseconds.

claudiulataretu
claudiulataretu previously approved these changes Feb 7, 2025
@bogdan-rosianu bogdan-rosianu self-requested a review February 7, 2025 11:44
src/common/graphql/graphql.service.ts Show resolved Hide resolved
const filteredPairs = this.applyFilters(mexPairs, filter);

return filteredPairs.length;
}

async getAllMexPairsRaw(): Promise<MexPair[]> {
async getAllMexPairsRaw(includeFarms: boolean = false): Promise<MexPair[]> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we create a new class MexPairsOptions or MexPairsFilter that will contain the includeFarms field? Passing a boolean to a function is not the best practice

src/endpoints/mex/mex.settings.service.ts Outdated Show resolved Hide resolved
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