LESSQL: Dealing with Database Schema Changes in Continuous Deployment

被引:0
|
作者
Afonso, Ariel [1 ]
da Silva, Altigran [1 ]
Conte, Tayana [1 ]
Martins, Paulo [1 ]
Cavalcanti, Joao [1 ]
Garcia, Alessandro [2 ]
机构
[1] Univ Fed Amazonas, Inst Comp, Manaus, Amazonas, Brazil
[2] Pontifical Catholic Univ Rio de Janeiro, Informat Dept, Rio De Janeiro, Brazil
关键词
D O I
10.1109/saner48275.2020.9054796
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The adoption of Continuous Deployment (CD) aims at allowing software systems to quickly evolve to accommodate new features. However, structural changes to the database schema are frequent and may incur in systems' services downtime. This encompasses the proper maintenance of both schema and source code, including rewrites of all outdated queries that use the same database. Previous solutions try to mitigate the burdening task of manually rewriting outdated queries. Unfortunately, a software team must still interact with some tools to properly fix the affected queries. Moreover, the team still has to locate and modify all the impacted code, which are often error-prone tasks. Thus, a project may not experience CD benefits when changes impact various code regions. In this paper we present an alternative approach, called LESSQL, whose goal is to improve queries' stability in the presence of structural schema changes over time. LESSQL supports queries that are less dependent on the database schema since they do not include the FROM clause. An underlying framework intercepts each LESSQL query and generates a corresponding SQL query for the current schema. It also locates the query attributes in the current schema and generates proper expressions to join the required tables. LESSQL supports unsupervised, supervised and hybrid configurations to process mappings of attributes to a newer schema version. We conducted experiments in the context of a popular open-source project, which experienced many diverse structural schema changes. Experiments outcomes indicate that our approach is effective in significantly reducing the modifications required for applying schema changes, allowing to better reap the benefits of CD. While supervised and hybrid configurations achieved a success rate higher than 95% with a minor query generation overhead, the unsupervised configuration was also successful for certain types of structural schema changes. These results show that LESSQL effectively favours CD and keeps queries running after database schema changes without services interruption.
引用
收藏
页码:138 / 148
页数:11
相关论文
共 50 条
  • [41] Providing explanations for database schema validation
    Rull, Guillem
    Farre, Carles
    Teniente, Ernest
    Urpi, Toni
    [J]. DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2008, 5181 : 660 - 667
  • [42] Extracting Schema from an OEM Database
    沈一栋
    [J]. Journal of Computer Science & Technology, 1998, (04) : 289 - 299
  • [43] A database schema for constructing visual queries
    Presser, CGM
    [J]. MSV'04 & AMCS'04, PROCEEDINGS, 2004, : 135 - 140
  • [44] Axiomatization of the evolution of XML database schema
    Coox, SV
    [J]. PROGRAMMING AND COMPUTER SOFTWARE, 2003, 29 (03) : 140 - 146
  • [45] Schema Integration of heterogeneous geospatial database
    Su Kehua
    Zhu Xinyan
    Kong Fanmin
    [J]. GEOINFORMATICS 2008 AND JOINT CONFERENCE ON GIS AND BUILT ENVIRONMENT: ADVANCED SPATIAL DATA MODELS AND ANALYSES, PARTS 1 AND 2, 2009, 7146
  • [46] Problems in the maintenance of a federated database schema
    Motz, R
    [J]. XXII INTERNATIONAL CONFERENCE OF THE CHILEAN COMPUTER SCIENCE SOCIETY, PROCEEDINGS, 2002, : 124 - 132
  • [47] THE LOGICAL ACCESS PATH SCHEMA OF A DATABASE
    ROUSSOPOULOS, N
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1982, 8 (06) : 563 - 573
  • [48] Evaluating software deployment languages and schema - An experience report
    Hall, RS
    Heimbigner, DM
    Wolf, AL
    [J]. INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 1998, : 177 - 185
  • [49] Its standards deployment database
    不详
    [J]. ITE JOURNAL-INSTITUTE OF TRANSPORTATION ENGINEERS, 2000, 70 (11): : 20 - 21
  • [50] LOSSLESSNESS AND SEMANTIC CORRECTNESS OF DATABASE SCHEMA TRANSFORMATION - ANOTHER LOOK OF SCHEMA EQUIVALENCE
    KOBAYASHI, I
    [J]. INFORMATION SYSTEMS, 1986, 11 (01) : 41 - 59