Closed jpgoelz closed 5 years ago
Oh. Yes. Will fix that.
Would it make sense to query all available days and parts with their solutions at once into multidimensional arrays (for example), so the interface is faster and shows them without the need to click Go!
?
The interface is actually very fast. The calculation will be slow in other puzzles. Right now it looks slow, because I used a timeout before the GO button actually retrieves the data (to be able to see the loading circle). For persistence see: https://github.com/basseur/AdventOfCode/issues/9
Since I am currently working on my dissertation, I will not be able to make an informed decision at this point. I would have to get into this topic and do not know many different databases, or at least not their pros and cons. So far I have only worked with MySQL in my PHP years. As for the rest, I still have a lot to read (or learn by doing) before I really know what it's all about.
Postgres would be the one I would yo with. Haven't heard of anybody using MySQL with Java...and I would definetly not go with something like Oracle DB or some crazy enterprise things ;). A different approach would be to pick something different than SQL databases...such as Graph-DB or noSQL DB...I would go with the simplest SQL choice: PostgreSQL :)
I did not intend to suggest MySQL by that anyways. ;) Your suggestion sounds good, so let's go with that!
In the React App, if you change the tag in the drop-down menu, the headline of the solution will also change, while the solution remains the same.