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

Should we retrieve data once or twice? #42

Open
cacrespo opened this issue Apr 19, 2024 · 0 comments
Open

Should we retrieve data once or twice? #42

cacrespo opened this issue Apr 19, 2024 · 0 comments
Labels
question Further information is requested single player Single player game related

Comments

@cacrespo
Copy link
Owner

Currently, we access card information when the game class is instantiated. The selected ID order is passed to 'single_player_end' using the POST method. However, only the order is passed, and not the rest of the information (such as the correct order or the year values). With these IDs, we retrieve the database again to evaluate the game's result.
Is it a better option (in terms of good practices, security, costs, efficiency...) to make only one request with all the information and then proceed through all the steps?

@cacrespo cacrespo added the single player Single player game related label Apr 19, 2024
@cacrespo cacrespo added this to the MVP Single Player milestone Apr 28, 2024
@cacrespo cacrespo added the question Further information is requested label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested single player Single player game related
Projects
None yet
Development

No branches or pull requests

1 participant