Answer the question
In order to leave comments, you need to log in
Is the index building process locking the table?
I can't find it in the documentation.
The problem is this. There is a table on 100 million records. I needed to add one field and then I decided to fill it in by doing
UPDATE (SET a = 'foo' where field и LIKE '%pattern%')
by him. Answer the question
In order to leave comments, you need to log in
It was necessary to add " EXPLAIN ANALYSE " before the command, then it was possible to find out the query plan without executing it.
UPDATE (SET a = 'foo' where field and LIKE '%pattern%')
3. Why is UPDATE not associated with this field so slow?See above.
There is a table on 100 million records.
Is the index building process locking the table?
Before UPDATE I made an index on it
I needed to add one fieldadding a non-DEFAULT field that allows a nullable value will be fast. If it needs to be filled in (there is DEFAULT, or how you do it by hand), this is already an update for 100 million lines.
1. Do I understand correctly that hash indexes cannot be used by all
1.1 kernels at once, but btree can?
3. Why is UPDATE not associated with this field so slow?
2. How to be in the current situation. I understand that the index had to be done after UPDATE, but how to understand how long the process will end? Might be worth the wait?
where field и LIKE '%pattern%'
- fetching a small number of rows (approximately how many?)? try disabling ssl support by correcting the line in the configuration.php configuration file:public $force_ssl = '0';
Your admin panel is trying to load via https (and the site does not work on https itself).
In the configuration.php file, change
Also check that the $live_site variable in the same file does not contain https. Well, in general, look for the occurrence of https and ssl in the config.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question