I have 2 tables that represent several million rows with indexes. I want to convert one of the indexes to DESC order in order to optimize some operations. However, will this affect the connection speed or other optimizations?
For instance:
Table A:a_id (pk)
Table B:b_id (pk)a_id (fk)
If A.a_id is stored as DESC and B.a_id is stored in ASC, will I encounter any problems or slowness when connecting? Can the oracle use indexes to join even if they have different sort orders? Should I also do B.a_id DESC or create a second index that is DESC? Obviously, I would like to try a simple experiment, but I don't have access to DBA or oracle backup installation to work.
Will Oracle be able to use indexes for joining, although they are different sort orders?
" ". . . , , - , , , . , , ; , , .
, A.A_ID, ( , ), .
: . , , , , . , , , , . , , - , . - - - .
Oracle , , ASC DESC .
DESC - , , , . , colA ASC, colB DESC, (colA, colB DESC), .
, , - "" . ORDER BY, .
ORDER BY
, - .
, "", , ,
? . Oracle , , , .
, , . . . .
asc/desc, 2 asc/desc order .
, desc, , , 90-10 ( ), desc 50-50 split , .
DESC , , asc, - desc, .
Early optimization is a waste of time. Just leave this problem and do the following. When this table has 100 million rows, change the indexes and check what happens, and until then your ten rows of data are not worth the time to “optimize”.
Source: https://habr.com/ru/post/1778762/More articles:Efficient way to perform 64-bit rotation using 32-bit values - cWhat does the error "ERROR: index" product: raw_hits: write error: 122070 out of 262017 bytes written "in Sphinx?" Make? - sphinxПриложение Facebook: загрузка нескольких изображений в одном сообщении на стену - apiNegative limit offset in mysql - sqlSetting up a web development lab for training - environmentFormatting the representation of scientific numbers in xsl - formatGoogle appengine blobstore обработчик загрузки обрабатывает дополнительные параметры сообщения формы - google-app-engineUsing jQuery plugins in greasemonkey (i.e. tipsy) - javascriptSaxon with Visual Studio 2010 - is there a way to use a debugger? - visual-studiovisual studio add - visual-studioAll Articles