Добавил select'ы для проверки в транзакиях
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.0 KiB |
@@ -711,14 +711,14 @@ $$;
|
||||
$t_1$ &
|
||||
\specialcell{
|
||||
Изменение имени судьи с \texttt{id\_judge = 201}\\ \\
|
||||
% \texttt{select id\_judge, name from judge}\\
|
||||
% \texttt{where id\_judge = 201;}\\
|
||||
\texttt{select id\_judge, name from judge}\\
|
||||
\texttt{where id\_judge = 201;}\\
|
||||
\texttt{update judge set name = 'Софа'}\\
|
||||
\texttt{where id\_judge = 201;}\\
|
||||
% \texttt{select id\_judge, name from judge}\\
|
||||
% \texttt{where id\_judge = 201;}\\
|
||||
\texttt{select id\_judge, name from judge}\\
|
||||
\texttt{where id\_judge = 201;}\\
|
||||
}
|
||||
\includegraphics[width=1\linewidth]{img/transaction1_2.png}
|
||||
\includegraphics[width=1\linewidth]{img/transaction1_1.png}
|
||||
&
|
||||
\\
|
||||
\hline
|
||||
@@ -753,7 +753,7 @@ $$;
|
||||
|
||||
В таблице~\ref{tbl:unrepeatable_read} представлены транзакции, на примере которых демонстрируется наличие артефакта <<Неповторяемое чтение>>.
|
||||
|
||||
\newpage
|
||||
% \newpage
|
||||
\begin{table}[h!]
|
||||
\centering
|
||||
% \addtocounter{table}{-1}
|
||||
@@ -794,15 +794,35 @@ $$;
|
||||
&
|
||||
\specialcell{
|
||||
Изменение имени судьи с \texttt{id\_judge = 201} \\
|
||||
и фиксация транзакции\\ \\
|
||||
и фиксация транзакции\\
|
||||
\texttt{select id\_judge, name from judge}\\
|
||||
\texttt{where id\_judge = 201;}\\
|
||||
\texttt{update judge set name = 'Софа'}\\
|
||||
\texttt{where id\_judge = 201;}\\
|
||||
\texttt{select id\_judge, name from judge}\\
|
||||
\texttt{where id\_judge = 201;}\\
|
||||
\texttt{commit;}\\
|
||||
}
|
||||
\includegraphics[width=1\linewidth]{img/transaction2_2.png}
|
||||
\includegraphics[width=0.9\linewidth]{img/transaction2_2.png}
|
||||
\\
|
||||
\hline
|
||||
|
||||
\end{tabularx}
|
||||
\end{table}
|
||||
|
||||
|
||||
\newpage
|
||||
\begin{table}[h!]
|
||||
\centering
|
||||
\addtocounter{table}{-1}
|
||||
\caption{Транзакции для демонстрации наличия артефакта <<Неповторяемое чтение>> (продолжение).}
|
||||
\label{tbl:unrepeatable_read}
|
||||
\footnotesize
|
||||
\begin{tabularx}{\textwidth}{|c|X|X|}
|
||||
\hline
|
||||
t & Транзакция 1 & Транзакция 2 \\
|
||||
\hline
|
||||
|
||||
$t_3$ &
|
||||
\specialcell{
|
||||
Получение имени судьи с \texttt{id\_judge = 201}\\
|
||||
@@ -821,7 +841,7 @@ $$;
|
||||
|
||||
В таблице~\ref{tbl:fantom} представлены транзакции, на примере которых демонстрируется наличие артефакта <<Фантомы>>.
|
||||
|
||||
\newpage
|
||||
% \newpage
|
||||
\begin{table}[h!]
|
||||
\centering
|
||||
% \addtocounter{table}{-1}
|
||||
@@ -858,14 +878,34 @@ $$;
|
||||
\\
|
||||
\hline
|
||||
|
||||
\end{tabularx}
|
||||
\end{table}
|
||||
|
||||
\newpage
|
||||
\begin{table}[h!]
|
||||
\centering
|
||||
\addtocounter{table}{-1}
|
||||
\caption{Транзакции для демонстрации наличия артефакта <<Фантомы>> (продолжение).}
|
||||
\label{tbl:fantom}
|
||||
\footnotesize
|
||||
\begin{tabularx}{\textwidth}{|c|X|X|}
|
||||
\hline
|
||||
t & Транзакция 1 & Транзакция 2 \\
|
||||
\hline
|
||||
|
||||
|
||||
$t_2$ &
|
||||
&
|
||||
\specialcell{
|
||||
Добавление нового судьи и фиксация \\ транзакции\\ \\
|
||||
\texttt{select id\_judge, name from judge}\\
|
||||
\texttt{where id\_judge >= 250;}\\
|
||||
\texttt{insert into judge (name, surname,}\\
|
||||
\texttt{patronymic, category)}\\
|
||||
\texttt{values ('анна', 'иванова', 'петровна',}\\
|
||||
\texttt{'высшая');}\\
|
||||
\texttt{values ('вика', 'иванова', 'петровна',}\\
|
||||
\texttt{'высшая');}\\
|
||||
\texttt{select id\_judge, name from judge}\\
|
||||
\texttt{where id\_judge >= 250;}\\
|
||||
\texttt{commit;}\\
|
||||
}
|
||||
\includegraphics[width=1\linewidth]{img/transaction3_2.png}
|
||||
@@ -886,6 +926,7 @@ $$;
|
||||
\end{tabularx}
|
||||
\end{table}
|
||||
|
||||
\newpage
|
||||
\section*{Заключение}
|
||||
\addcontentsline{toc}{section}{Заключение}
|
||||
В ходе освоения данного курса было выполнено пять лабораторных работ:
|
||||
|
||||