I was wondering if it is faster to process data in MySQL or in a server language such as PHP or Python. I am sure that native functions like ORDER will be faster in MySQL due to indexing, caching, etc., but actually calculate the rank (including links that return multiple records as having the same rank):
SELECT TORCH_ID, distance AS thisscore, (SELECT COUNT(distinct(distance))+1 FROM torch_info WHERE distance > thisscore) AS rank FROM torch_info ORDER BY rank
... as opposed to simple execution SELECT TORCH_ID FROM torch_info ORDER BY score DESC, and then determine the rank in PHP on the web server.
SELECT TORCH_ID FROM torch_info ORDER BY score DESC
MySQL, , . , 90% , , ? -/ , , .
, " -", " ".
SELECT *
SELECT * WHERE x = 3
, . , , mySQL, , PHP .
, . , , , , .
, . , torchID ...
, mySQL , .
, , , , - , SQL . . " " .
, , 10 000 , 1000 , , 100 , . , 100 , 10% (9999), 1000 .
.
, JDBC- ODBC dsn, 2-3 . ( , odbc dsn )
Source: https://habr.com/ru/post/1709876/More articles:Avoid CSS Inheritance - cssQuickConnect vs Phonegap - javascriptScript all data from one table or all tables in Sql Server 2005/8? - sqlКак я могу скопировать динамически созданный исходный HTML из Интернета? - javascriptUnitScript unit testing - installerWhat is the best way to implement a simple database select / update program in vb6? - databasehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1709878/looking-for-approaches-to-categorize-objects-based-on-their-properties&usg=ALkJrhgR-pDAHmwukFSLRCSnvLmW-vD7qgCreating truth tables for logical expressions in Haskell - logicHow to get the final address of my code - cКакой самый быстрый способ для INSERT загружать данные из одной таблицы в другую? (SQL Server 2005) - sql-serverAll Articles