| 10.14489/vkit.2021.12.pp.003-012 |
|
DOI: 10.14489/vkit.2021.12.pp.003-012 Казанцев И. А., Классен Р. К. Аннотация. Создан прототип автоматического претранслятора. Для повышения эффективности работы автоматического претранслятора предложен новый подход к разбору оригинального запроса SQL (Structured Query Language) и построению регулярного дерева. Новый подход заключается в создании специальных обработчиков для определенных SQL-конструкций. Поскольку регулярное дерево может быть построено различными способами для одного запроса, то для поиска более эффективного регулярного плана в претранслятор добавлены метаданные со схемой базы данных, размером полей и числом строк в отношениях. Учет таких параметров позволил уменьшить влияние сетевых передач на время выполнения за счет более уместного выбора размерности полей и выполнения операций СОЕДИНЕНИЯ с порядком отношений от меньшего к большему. Эффективность работы претранслятора подтверждена результатами экспериментальных исследований. Ключевые слова: язык структурированных запросов; синтаксическое дерево; инструмент генерации синтаксических анализаторов; Clusterix-подобные системы управления базами данных; регулярный план; претрансляция.
Kazantsev I. A., Klassen R. K. Abstract. We have created an automatic pretranslator prototype and proposing a new approach to improve the automatic pretranslator efficiency by parsing the original SQL (Structured Query Language) query and building a regular tree. The new approach is to create custom handlers for specific SQL constructs. The resulting handlers, instead of omitting some SQL constructs at the sorting and aggregation stage, allow them to be processed at the join stage. Joining operations, in contrast to sorting and aggregation operations, are performed in parallel on several nodes of the computing cluster, which significantly increases the productivity of processing a single query. You can additionally improve performance by reducing the amount of data transferred, due to a more accurate selection of the dimensions of DECIMAL fields and lowering the projection operations to the level of sorting and aggregation if lifting them increases the number of intermediate relation fields. A regular tree for a single request can be built in various ways. Finding the most effective regular plan pretranslator requires constructing many plans. A plan is selected from the set in which join operations are performed with the order of intermediate relations with sizes from smallest to largest. The experiments carried out have shown that the execution time of a stream of requests pretranslated by the pretranslator is not more than the execution time of a similar stream, pretranslated manually, which proves its effectiveness. Keywords: Structured Query Language (SQL); Syntax tree; Syntax parser generation tool; Clusterix-like database management systems; Regular plan; Pretranslation.
РусИ. А. Казанцев, Р. К. Классен (Казанский национальный исследовательский технический университет им. А. Н. Туполева – КАИ, Казань, Россия) E-mail: Этот e-mail адрес защищен от спам-ботов, для его просмотра у Вас должен быть включен Javascript EngI. A. Kazantsev, R. K. Klassen (Kazan National Research Technical University named after A. N. Tupolev – KAI, Kazan, Russia) E-mail: Этот e-mail адрес защищен от спам-ботов, для его просмотра у Вас должен быть включен Javascript
Рус1. A Visual Approach to Semantic Query Design Using a Web-Based Graphical Query Designer / P. R. Smart et al. // Intern. Conf. on Knowledge Engineering: Practice and Patterns // Lecture Notes in Computer Science. 2008. V. 5268. P. 275 – 291. DOI 10.1007/978-3-540-87696-0_25 Eng1. Smart P. R. et al. (2008). A Visual Approach to Semantic Query Design Using a Web-Based Graphical Query Designer. International Conference on Knowledge Engineering: Practice and Patterns. Lecture Notes in Computer Science, Vol. 5268, pp. 275 – 291. DOI 10.1007/978-3-540-87696-0_25
РусСтатью можно приобрести в электронном виде (PDF формат). DOI: 10.14489/vkit.2021.12.pp.003-012 Скопируйте DOI статьи и перейдите по ссылке https://id-spektr.ru/product/pokupka-elektronnoy-stati-iz-zhurnala-vestnik-kompyuternyh-i-informatsionnyh-tehnologiy В комментарии к заказу обязательно укажите DOI статьи. .
EngThis article is available in electronic format (PDF). DOI: 10.14489/vkit.2021.12.pp.003-012 Copy the article DOI and follow the link https://id-spektr.ru/product/pokupka-elektronnoy-stati-iz-zhurnala-vestnik-kompyuternyh-i-informatsionnyh-tehnologiy Please specify the article DOI in the order comments.
.
|
Archive
Разработка концепции и создание сайта - ООО «Издательский дом «СПЕКТР»