Size: a a a

2020 December 22

G

Grigorij in MySQL
Но!
источник

G

Grigorij in MySQL
Most MySQL indexes (PRIMARY KEY, UNIQUE, INDEX, and FULLTEXT) are stored in B-trees. Exceptions are that indexes on spatial data types use R-trees, and that MEMORY tables also support hash indexes.
источник

АЗ

Алихан Закиров... in MySQL
Grigorij
Most MySQL indexes (PRIMARY KEY, UNIQUE, INDEX, and FULLTEXT) are stored in B-trees. Exceptions are that indexes on spatial data types use R-trees, and that MEMORY tables also support hash indexes.
Оооо
источник

G

Grigorij in MySQL
Меня всё ещё не отпускает ощущение, что так нельзя)
источник

АЗ

Алихан Закиров... in MySQL
Ты это где нашол
источник

АЗ

Алихан Закиров... in MySQL
Grigorij
Меня всё ещё не отпускает ощущение, что так нельзя)
Воот. Но почему?
источник

АЗ

Алихан Закиров... in MySQL
Почему нельзя)
источник

G

Grigorij in MySQL
Я не могу найти по этому ничего в документации, но весь интернет пестрит информацией, что innodb подменит тебя hash на btree.
источник

G

Grigorij in MySQL
А дольше 5ти минут искать лень
источник

ВТ

Виктор Ткаченко... in MySQL
hash (индексы) в общем и целом, подход к интерполяции значений и построении все того же дерева.
источник

ВТ

Виктор Ткаченко... in MySQL
Нужно разделять понятия hash index, и hash table
источник

ВТ

Виктор Ткаченко... in MySQL
такой тип индекса нужно как то эффективно считать с диска и магическим образом Q(1) на доступ мы вряд ли получим.
источник

E

Enjoys in MySQL
В mysql можно выбрать все столбцы, кроме некоторых?
источник

ВТ

Виктор Ткаченко... in MySQL
Enjoys
В mysql можно выбрать все столбцы, кроме некоторых?
Да, перечислив нужные)
источник

E

Enjoys in MySQL
Виктор Ткаченко
Да, перечислив нужные)
))) а если перечислить не нужные, нет такого?
источник

ВТ

Виктор Ткаченко... in MySQL
Enjoys
))) а если перечислить не нужные, нет такого?
Только на уровне используемого ЯП
источник

E

Enjoys in MySQL
Ок
источник

S

Stefan in MySQL
@Gr3ga походу mysqldump и придется юзать) это о ключе —master-data[=value], особенно нравится это It also turns on --lock-all-tables, unless --single-transaction also is specified, in which case, a global read lock is acquired only for a short time at the beginning of the dump (see the description for --single-transaction)


If the option value is 2, the CHANGE MASTER TO statement is written as an SQL comment, and thus is informative only; it has no effect when the dump file is reloaded. If the option value is 1, the statement is not written as a comment and takes effect when the dump file is reloaded. If no option value is specified, the default value is 1.

--master-data sends a SHOW MASTER STATUS statement to the server to obtain information, so it requires privileges sufficient to execute that statement. This option also requires the RELOAD privilege and the binary log must be enabled.

The --master-data option automatically turns off --lock-tables. It also turns on --lock-all-tables, unless --single-transaction also is specified, in which case, a global read lock is acquired only for a short time at the beginning of the dump (see the description for --single-transaction). In all cases, any action on logs happens at the exact moment of the dump.
источник

S

Stefan in MySQL
а в самом дампе уже будет инфа о позиции
источник

S

Stefan in MySQL
спасибо за прояснения по репликации)
источник