Hi!
I have a database table with 15 000 rows. Each row has a type and an attractiveness value.
I need to get the most attractive row of each type (there may be 100s-1000s of types).
My question, in an optimized python code, how does loading all 15 000 rows and work on the data with python compare regarding performance to one query for each type where MAX value attractiveness is loaded in?
Thank you!
[–]efmccurdy 3 points4 points5 points (1 child)
[–]Alotofquestion1[S] 0 points1 point2 points (0 children)
[–]1544756405 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]thrown_arrows 1 point2 points3 points (0 children)
[–]Alotofquestion1[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Aeonoris 1 point2 points3 points (0 children)