INTEK: Jurnal Penelitian
Vol 7, No 1 (2020): April 2020

Improving Speed Performance of Select Random Query in SQL Database

Muhammad Nur Yasir Utomo (Teknik Elektro, Politeknik Negeri Ujung Pandang)
Alvian Bastian (Unknown)
Anggun Winursito (Unknown)



Article Info

Publish Date
03 Apr 2020

Abstract

Select random is a query in a SQL database that can retrieve data randomly from a table. Select random is often used to present data in various applications such as websites, data mining and others. Unfortunately, ordinary select random query is inefficient in terms of processing time if used in large table. This paper, tries to solve this problem by proposing two optimized methods of select random query, namely the Small Percentage Order by Rand (SPO-Rand) and the Filtered Column Order by Rand (FCO-Rand). The two proposed methods are then compared in terms of processing speed with a standard Select Random query or Normal Order by Rand (NO-Rand). The scenario of the experiment is to collect five random data from several data sets, ranging from 10.000 to 200.000 data. Based on the results of experiments that have been conducted, the proposed FCO-Rand method obtained the best process speed with 0.074 seconds at 200.000 data, followed by SPO-Rand with 0.265 seconds. These result are much faster than the standard random select method (NO-Rand) which takes up to 7,035 seconds for the same task.

Copyrights © 2020






Journal Info

Abbrev

Intek

Publisher

Subject

Computer Science & IT Engineering

Description

INTEK is a journal managed by the Journal and Publication Development Unit of Ujung Pandang State Polytechnic, which is published twice a year, in April and October. The journal INTEK has also been indexed. The INTEK Journal accepts research scripts in the fields of technology and engineering such ...