
6 THREATS TO VALIDITY
Internal Validity. For collecting energy consumption
measurements, we used Juliet, a tool created for our
experiment. It could introduce bias, so the building of
Juliet, which was inspired by similar tools, was inde-
pendent of the experiment in order to avoid any bias.
Construct Validity. For the design of the experiment,
we use the same computer for running the client and
server, it limits our experiment to a monolithic sce-
nario. This threat is partially reduced by Juliet being
able to collect the energy consumed by isolated pro-
cesses, i.e., the processes for the client and server. We
plan to run experiments in a real distributed scenario.
On the other hand, the fluctuation of energy measure-
ments can affect the results and conclusions of the ex-
periment. To reduce this threat, we run 30 times per
each database strategy optimization and query, then
we calculate the average values of them. Moreover,
the database server can be altered by the execution of
previous queries affecting the results and conclusions
of the experiment. To reduce this threat, we restart the
server in order to collect energy by considering equal
conditions. A similar decision is taken for the con-
dition of the database itself each time that a strategy
should be implemented, i.e., the database is deleted
and recreated with the selected strategy to avoid any
alterations in results and conclusions.
External Validity. As our experiment was performed
on a specific benchmarking limited to 22 specific
queries, our results cannot be generalized. This threat
is partially reduced by using the TPC-H benchmark-
ing that is well known in this kind of experiment.
7 CONCLUSION
To better understand the impact of end-to-end query
optimization strategies (i.e., indexation, data com-
pression, and their combination) on the power con-
sumption of RDBMS, from both client and server per-
spectives, we execute tests, using TPC-H benchmark,
configured with 22 queries on a 1GB dataset on Post-
greSQL RDBMS. To do so, we propose a monitoring
tool, called Juliet, able to monitor and estimate the
energy and power consumption of processes execut-
ing in Linux-based systems. From the experimental
results, we conclude that indexation is more effective
than data compression to reduce the energy consumed
by the execution of the majority of the 22 queries.
However, more experiments are needed to accurately
evaluate the impact on energy consumption and ob-
tain stronger conclusions.
We are working on improving the scenario of the
experiments to reflect more real-world deployments
(e.g., run client and server in different machines), on
classifying the queries according their complexity, re-
sponses time and size, and on considering consump-
tion on other resources, such as CPU, I/O usage, and
memory. We also plan to apply the same empirical
evaluation over other RDBMS and NoSQL datasets.
ACKNOWLEDGEMENTS
This work was partially supported by the
”GreenSE4IoT: Towards Energy-efficient Software
for Distributed Systems” project whose code is STIC-
AMSUD 22-STIC-04, and was partially carried out
at the Energy4Climate Interdisciplinary Center (E4C)
of IP Paris and
´
Ecole des Ponts ParisTech, which is in
part supported by 3rd Programme d’Investissements
d’Avenir [ANR-18-EUR-0006-02].
REFERENCES
Guo, B., Yu, J., Yang, D., Leng, H., and Liao, B. (2022).
Energy-efficient database systems: A systematic sur-
vey. ACM Computing Surveys, 55(6):1–53.
Guo, Y., Li, J., Li, X., Li, J., and Li, X. (2017). A
green framework for dbms based on energy-aware
query optimization and energy-efficient query pro-
cessing. Journal of Network and Computer Applica-
tions, 84:118–130.
Karyakin, A. and Salem, K. (2017). An analysis of memory
power consumption in database systems. In Workshop
on Data Management on New Hardware, pages 1–9.
Koc¸ak, S. A., Alptekin, G. I., Miranskyy, A. V., Bener,
A., and Cialini, E. (2018). An empirical evaluation
of database software features on energy consumption.
In Internat. Conf. on Information and Communication
Technology for Sustainability, volume 52, pages 1–19.
Lella, H. S., Manasa, K., Chattaraj, R., and Chimalakonda,
S. (2023). DBJoules: An Energy Measurement Tool
for Database Management Systems. arXiv preprint
arXiv:2311.08961.
Liu, X., Wang, J., Wang, H., and Gao, H. (2013). Gener-
ating power-efficient query execution plan. In Inter-
national Conf. on Advances in Computer Science and
Engineering, pages 286–290.
Mahajan, D., Blakeney, C., and Zong, Z. (2019). Improv-
ing the energy efficiency of relational and NoSQL
databases via query optimizations. Sustainable Com-
puting: Informatics and Systems, 22:120–133.
Martins, P., Tom
´
e, P., Wanzeller, C., S
´
a, F., and Abbasi,
M. (2021). Comparing oracle and postgresql, perfor-
mance and optimization. In Trends and App. in Infor-
mation Systems and Technologies, pages 481–490.
Procaccianti, G., Lago, P., and Diesveld, W. (2016). En-
ergy Efficiency of ORM Approaches: an Empirical
ENASE 2024 - 19th International Conference on Evaluation of Novel Approaches to Software Engineering
664