Shadowing Practice: Understand SQL Transactions in 5 Minutes - Learn English Speaking with Video

Kies een oefenmodus

Elke modus opent een volledig scherm oefenruimte.

61 zinnen
Als zinnen te kort of te lang zijn, klik op Bewerken om ze aan te passen.
1
Ever lost data because something crashed halfway through a database update?
2
SQL transactions are here to protect you.
3
In this video, I'll explain them in simple terms, so you can keep your data safe and consistent, even when things go wrong.
4
A transaction is one of the key concepts in all database management systems.
5
Transactions allow multiple database operations to be grouped into one unit.
6
Within a single transaction, a sequence of data operations either occurs completely or not at all.
7
All intermediate states within a single transaction are not visible to other transactions, and if the transaction cannot be successfully completed for some reason,
8
none of the results will be saved in the database.
9
The easiest way to understand database transactions is through the classic example of banking transactions.
10
Imagine we are working with a bank's database.
11
We have a table that contains information about clients and their available balances.
12
For simplicity, this is a table consisting of two columns, the client's name, and the available balance.
13
Let's assume we want to transfer $100 from Andrew's account to John's account.
14
To do this, we need to perform the following operations.
15
Reduce Andrew balance by $100 with the update command, then increase John balance by these $100.
16
To perform such operation, we need to do two actions.
17
It is necessary that all these actions execute together or not execute at all.
18
A short failure isn't critical if Andrew's first attempt to transfer John's money fails, and both simply keep their original balances.
19
However, if one operation is completed, for example, Andrew's money is deducted but John's account doesn't receive it, this leads to serious issues.
20
In the real world, anything can happen between these two operations.
21
A brief network outage, an error at the banking application level, or something else.
22
We need a guarantee that if something interrupts the completion of this group of operations,
23
none of the results of the intermediate commands will be recorded in the database,
24
and we can get this guarantee if we combine these actions into a single transaction.
25
In PostgreSQL, a transaction consists of a series of SQL commands between the begin and commit statements.
26
If during a transaction we decide not to commit the changes, for example, if Andrew's balance turns negative,
27
we can use the rollback command instead of commit undoing all modifications.
28
It's also important to understand how transactions interact with each other.
29
By default, the transaction isolation level in PostgreSQL is Red Committed.
30
This means that transactions only see the data that other transactions have confirmed
31
and do not see changes made by these transactions that have not yet been confirmed.
32
Let's look at this example in practice.
33
I already have a table prepared with the necessary data.
34
Let's execute a select.
35
We see two balance records let's execute the transaction step -by -step.
36
First, let's perform a begin.
37
We started a transaction.
38
Everything that will happen here in this connection is now occurring within this transaction.
39
Let's execute the next line.
40
Execute select.
41
We see the intermediate result, but it is visible only within our current transaction.
42
Let's open a parallel connection to the database and perform a select from that connection, meaning outside the scope of the current transaction.
43
Open a new connection and execute the query.
44
We see that here Andrew's balance is still displayed as 600,
45
although in another open transaction we started an update and Andrew's balance has already decreased by 100.
46
Let's go back there and continue the transaction perform the next update
47
and see how the data in the table looks now
48
we see that john's balance increased by 100
49
but i repeat we see all this only within the current transaction if we switch to parallel connection
50
everything is still the same as it was before the transaction was executed let's go back and finally commit the transaction
51
Now the result is fully committed, and we will see it within Parallel Transactions.
52
Let's verify this.
53
Execute this query.
54
Now we see the final result.
55
Everything that happened within the transaction block wasn't visible in other database sessions until the transaction was committed,
56
and if the transaction hadn't been committed but was rolled back, then the result of the intermediate executions wouldn't be visible.
57
Thanks for watching.
58
If you want to dive deeper, my complete SQL course on Udemy is available with a special offer for YouTube viewers.
59
You'll get hands -on exercises, quizzes, and advanced tips we didn't cover here.
60
Links in the description.
61
And don't forget to subscribe for more tutorials.

App downloaden

Alles wat je nodig hebt om vloeiend te spreken

AI UitspraakScoor elke zin
IPA OefeningBeheers elk geluid
WoordenschatBouw je woordenschat op
WoordenspelLeren terwijl je speelt
FOR YOU

Aanbevolen Video

Woordenschat en spreektips bij deze les

Deze spreekles is gebaseerd op de video “Understand SQL Transactions in 5 Minutes”. Deze woorden komen het vaakst terug: transaction, balance, database, execute, operation. Deze video bevat 61 zinnen en 754 woorden om na te spreken. Het gesproken deel duurt 4:40. De spreker praat in een natuurlijk tempo van ongeveer 162 woorden per minuut, dicht bij een alledaags gesprek. Slechts 79% van de woorden hoort bij de 3.000 meest gebruikte Engelse woorden, dus de woordenschat is pittig.

Belangrijke woorden in deze video

15 woorden uit de video die het leren waard zijn, met uitspraak en betekenis:

WoordUitspraakBetekenis
database zelfstandig naamwoord/ˈdeɪtəˌbeɪs/database, databank
execute werkwoord/ˈɛksɪˌkjuːt/executeren
commit werkwoord/kəˈmɪt/toevertrouwen, toewijzen
visible bijvoeglijk naamwoord/ˈvɪzɪb(ə)l/zichtbaar, zichtbare
intermediate bijvoeglijk naamwoord/ɪn.tə(ɹ)ˈmi.di.ət/middelmatig
select werkwoord/sɪˈlɛkt/uitkiezen, selecteer
parallel bijvoeglijk naamwoord/ˈpæ.ɹəˌlɛl/evenwijdig, parallel
occur werkwoord/əˈkɜː/plaatsvinden
guarantee zelfstandig naamwoord/ˌɡæɹ.ənˈtiː/garantie
confirm werkwoord/kənˈfɝm/bevestigen
consist zelfstandig naamwoord/kənˈsɪst/samenstelling
query zelfstandig naamwoord/ˈkwɪɹ.i/vraag, verzoek
consistent bijvoeglijk naamwoord/kənˈsɪs.tənt/veel voorkomend, consequent
successfully bijwoord/səkˈsɛs.fə.li/met succes
sequence zelfstandig naamwoord/ˈsiː.kwəns/volgorde, reeks

Phrasal verbs die je zult horen

WoordBetekenis
go back werkwoordteruggaan

Zinnen om te herhalen

Korte, volledige zinnen uit de video die je in alledaagse gesprekken kunt gebruiken:

  • Imagine we are working with a bank's database.
  • Let's look at this example in practice.
  • First, let's perform a begin.
  • Let's execute the next line.

Grammatica in deze video

De structuren die de spreker het meest gebruikt, met de exacte woorden uit de video:

StructuurIn de video
Lijdende vorm be + voltooid deelwoord — het gaat om wat er gebeurt, niet om wie het doetbe grouped · cannot be successfully completed · will be saved
Present perfect have/has + voltooid deelwoord — iets uit het verleden dat nu nog telthave confirmed · has already decreased

Uitspraak om op te letten

De spreker gebruikt 9 samentrekkingen en verkorte vormen, zoals didn't, doesn't, don't. Spreek ze kort uit, zoals je ze hoort.

  • De klanken “sh” en “zh”: transaction /tɹænˈzækʃən/, execution /ˌɛk.sɪˈkjuː.ʃən/, completion /kəmˈpliː.ʃən/, isolation /ˌaɪsəˈleɪʃən/, modification /ˌmɑdɪfɪˈkeɪʃən/
  • Lange woorden — let op de klemtoon: intermediate /ɪn.tə(ɹ)ˈmi.di.ət/, successfully /səkˈsɛs.fə.li/, execution /ˌɛk.sɪˈkjuː.ʃən/, isolation /ˌaɪsəˈleɪʃən/, modification /ˌmɑdɪfɪˈkeɪʃən/

Klanken die Nederlandstaligen lastig vinden:

  • Stemhebbende eindmedeklinker — /b/, /d/, /g/, /z/, /v/ niet verscherpen: dive /daɪv/, subscribe /səbˈskɹaɪb/, columns /ˈkɑləmz/, quiz /kwɪz/, outage /ˈaʊ.tɪd͡ʒ/
  • /æ/ — opener dan de Nederlandse “e”: transaction /tɹænˈzækʃən/, parallel /ˈpæ.ɹəˌlɛl/, guarantee /ˌɡæɹ.ənˈtiː/, halfway /ˌhæfˈweɪ/, interact /ɪn.təˈɹækt/
  • /w/ — met ronde lippen: query /ˈkwɪɹ.i/, sequence /ˈsiː.kwəns/, halfway /ˌhæfˈweɪ/, quiz /kwɪz/

Zo oefen je met deze video

  1. Luister de hele video één keer zonder te spreken en noteer de woorden die je niet kent.
  2. Begin op 0,75× snelheid, spreek zin voor zin na en ga terug naar normale snelheid zodra het makkelijk gaat.
  3. Neem jezelf op en vergelijk met het origineel; let daarbij op woorden als database, execute, commit.

Wat is de Shadowing-techniek?

Shadowing is een wetenschappelijk onderbouwde taalleermethode die oorspronkelijk is ontwikkeld voor professionele tolkentraining en gepopulariseerd door polyglot Dr. Alexander Arguelles. De methode is eenvoudig maar krachtig: je luistert naar native Engelse audio en herhaalt het onmiddellijk hardop — als een schaduw die de spreker volgt met slechts 1–2 seconden vertraging. In tegenstelling tot passief luisteren of grammaticadrills, dwingt shadowing je hersenen en mondspieren om echte spraakpatronen tegelijkertijd te verwerken en te reproduceren. Onderzoek toont aan dat het de uitspraaknauwkeurigheid, intonatie, ritme, verbonden spraak, luisterbegrip en spreekvaardigheid aanzienlijk verbetert — waardoor het een van de meest effectieve methoden is voor IELTS Speaking-voorbereiding en echte Engelse communicatie.

Shadowing-techniek: lees de volledige stap-voor-stap-gids →