main
Johnathan Douglas 2023-07-10 10:01:48 -03:00
parent 92003b06e0
commit 89d7449221
1 changed files with 8 additions and 2 deletions

View File

@ -70,6 +70,8 @@ values (1001, 50, '2023-04-01'),
(1003, 70, '2023-04-03'), ....; --limit 1.000
```
### Result
| quantity | method | time seconds | performance |
|----------:|---------|-------------------:|------------:|
| 1.000 | Insert1 | 1,44s | - |
@ -87,7 +89,7 @@ values (1001, 50, '2023-04-01'),
# Update
### Grupo 1:
## Grupo 1:
Atualizar um campo ou mais, mas o valor é o `mesmo` para um determinado grupo:
@ -120,6 +122,8 @@ set date=now(),
where id in (1, 2, 3, . . .);
```
### Result
| quantity | method | time seconds | performance |
|----------:|-------------------|-------------------:|------------:|
| 1.000 | UpdateMassive1Job | 1,00s | - |
@ -131,7 +135,7 @@ where id in (1, 2, 3, . . .);
| 1.000.000 | UpdateMassive1Job | (26m 10s) 1570,00s | - |
| 1.000.000 | UpdateMassive2Job | 15,00s | 104x |
### Grupo 2:
## Grupo 2:
Atualizar um campo ou mais, mas o valor é o `diferente` para cada registro:
@ -183,6 +187,8 @@ set date = v.date,
where t.id = v.id;
```
### Result
| quantity | method | time seconds | performance |
|----------:|-------------------|-------------------:|------------:|
| 1.000 | UpdateMassive3Job | 1,00s | - |