Visualization Techniques with Data Cubes Utilizing Concurrency for Complex Data

Visualization Techniques with Data Cubes Utilizing Concurrency for Complex Data

Visualization Techniques with Data Cubes Utilizing Concurrency for Complex Data Daniel Szelogowski UW - Whitewater Computer Science Master’s Program Whitewater, WI [email protected] Abstract. With web and mobile platforms viewpoints of the data sets. For example, the Roll- becoming more prominent devices utilized in data up function allows us to aggregate data and analysis, there are currently few systems which are perform dimensional reduction - subsequently, the not without flaw. In order to increase the Drill-down function performs the opposite role, performance of these systems and decrease errors increasing a dimension; we may also Slice or Dice of data oversimplification, we seek to understand the data into sub-cubes of one or multiple how other programming languages can be used dimensions, respectively, or Pivot the cube to view across these platforms which provide data and type the data from a different rotation. As well, we can safety, as well as utilizing concurrency to perform exploit these functions to create visualizations of complex data manipulation tasks. our data through various platforms: 3D plane graphs, bar or line graphs, pivot tables, and various Keywords- OLAP; Data Cube; Visualization; other charts or illustrations situationally. Concurrency; Parallel 1.2 Cube Issues The ability to manipulate and aggregate data for 1. INTRODUCTION visual analysis provided by OLAP cubes, while Visualization of complex data continues to be an generally practical, features a series of flaws: issue as the size of our datasets grow larger and the a) Time: Any modification to an OLAP cube platforms for these visualization tools expand requires a full update to the cube, which is alongside an increasingly mobile market. One time-consuming and resource-intensive. approach, known as Online Analytical Processing b) Oversimplification: With visualization, (OLAP), allows users to analyze complex it’s very easy to take vastly complex data information from multiple database systems and simplify it to be more easily simultaneously to “extract and view business data understandable; this may lead to from different points of view” [1]. assumptions on the data missing significant features, which may be highly inaccurate. 1.1 OLAP Systems and Data Cubes c) Human Input: While the OLAP system The OLAP system divides databases into data provides the tools for manipulating data to cubes (or OLAP Cubes), which allow for ease of be visualized, human input is required for analysis, reporting, and visualization. These cube analysis operations, which may be objects allow for four basic operations: intrinsically flawed. As such, an ● Roll-up overreliance on visuals for quick, at-a- ● Drill-down glance views can also become erroneous ● Slice & dice and worsen the problem of ● Pivot (rotate) oversimplification. These functions allow us to manipulate the data d) Visualization Democracy: As data cubes in particular ways that enable different analysis grows more popular, tools for various platforms and data sets are being operation and subsequent OLAP functions, and a rapidly developed, worsening both the TypeScript JupyterLab extension which performs issues of human input and the visualization [3]. However, this oversimplification as we grow more reliant implementation presents difficulties in reproducing on visuals and fast (potentially non-critical) the user-performed data analysis, as the operations analysis. and visualizations are performed within a live Jupyter notebook with the backend script which 1.3 Present Research may be converted into a Python script using the As such, this paper and subsequent research will ‘nbconvert’ command: a tool to convert Jupyter seek to tackle the issues of time and notebooks to formats such as PDF, HTML, LaTeX, oversimplification by means of concurrent Markdown, etc. [2]. algorithms to increase performance on varying platforms. In particular, we will look at the Nonetheless, we see both an issue of shareability “CubesViewer” data visualization web application, and platform compatibility; the dichotomy of ‘fully since it is the most cross-compatible among client-side’ and ‘server-side with interop layers’ is multiple platforms. a problem for any data analyst seeking high compatibility, ease integration, little dependencies, The preceding sections will discuss current non- and low overhead. commercial dynamic systems and issues regarding their implementation, particularly on aspects of the 2.2 CubesViewer programming languages involved, discussing the Our primary focus will be on CubesViewer, an purpose and benefits of concurrency and more HTML5 application broken up as client (or verbose languages, and how concurrency can be “studio”) and server models. The server model acts utilized to create a more efficient system of as a backend, serving the client application’s web visualization. URLs using the Django library in Python; the client, more commonly referred to as the studio, performs the vast majority of its computations 2. OVERVIEW through JavaScript (JS), allowing easy integration Data cubes themselves present a few general into other websites and applications [4]. pitfalls: ● Only using one cube or putting unrelated This implementation through JS comes at a cost, data in the same cube. however, particularly in performance: ● Different levels of granularity between the ● JS is single-threaded by nature, albeit dimension table and the fact table. asynchronous, meaning we lose ● Fact tables having more foreign key performance due to thread halting and members than exist in the dimension table. decreased concurrency. While these issues are difficult to avoid, current ● JS is locked into memory constraints by the systems face difficulty in producing the web-browser, rather than using something visualization in general. more modern like WebAssembly (Wasm) which can exploit desktop-grade 2.1 Atoti performance in web applications and utilize The Python library “Atoti” solves issues of features such as shared memory performance with Python visualization through the concurrency for parallel concurrency [5]. use of a double-backend system: a proprietary Java ● JS has no support for 64-bit integers, so interoperability (interop) system (requiring large, complex data sets may suffer in either a pre-installed JDK or a fallback JDK accuracy. As well, JS objects and bundled with the API) which performs the cube prototypes scale poorly with large importance of concurrency. Concurrency is a applications, which may also be taxing on form of multithreaded programming where two performance. or more tasks overlap in execution, such as when multiple processes are assigned across CPU cores As such, while the ease of JS integration across by the kernel, allowing for simultaneous, platforms is admittedly useful, visualizing data “concurrent” execution of the processes, or when while encountering these errors, similar to the ones new connections arrive before prior connections faced by Python and the Atoti library, becomes a are complete and need to be immediately handled. continuous battle for the aforementioned issues: Parallelism is, by nature, a special case of time (program duration or resource cost) and concurrency where two or more tasks begin at the oversimplification of data. same time. This type of execution will be our primary focus, as it is typically the more common 2.3 Performance and Precision form of concurrent programming. While a similar implementation of CubesViewer could be done utilizing Python both client- and 3.1 Unit Testing server-side, we still face these issues: As a demonstration of the necessity for a) Python is inherently slow due to its concurrency and why Python and JavaScript are implementation of dynamic programming insufficient for very large datasets, the following and being an interpreted programming algorithm was performed across both languages: language. b) Complex numbers are difficult to work runtimes = [] within Python. In order to avoid oversimplification of our data, we need to for lcv in range(0, 1000) { rely on third-party libraries such as NumPy myNumbers = [] to provide things such as 128-bit floating- for i in range(0, 500000) { point numbers [6]. While this is not a direct myNumbers.append( issue necessarily, this adds an additional random.int(0, 100000)) ) layer of time and resource deprivation to } large data sets. c) Python features a Global Interpreter Lock start_time = time.now() (GIL) which adds to the hindrance on quickSort(myNumbers) performance — similar to JavaScript’s duration = time.now() - start_time single-threaded nature, this imposes runtimes.append(duration) numerous restrictions on threads; in } particular, we cannot utilize multiple CPUs (multi-core concurrency) [7] — perhaps avgRun = sum(runtimes)/len(runtimes) the biggest drawback in performance. print("Average runtime: {avgRun} ms") Noting these obstacles, we can look toward utilizing the same viewer “studio” of CubesViewer but performing the major data manipulation algorithms outside of JavaScript, instead using a This gives us a general idea of the performance of language such as with WebAssembly. the two languages with large data sets, as seen in Figure 1. 3. MAIN METHODS To create a more viable, performance-forward implementation we need to better understand the Figure 1 also compares Python and JavaScript to C#, one of many languages compilable to WebAssembly — though many other languages compile as well which also feature strong implementations of concurrency, such as C++, Rust, Golang, and Java [8].

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us