Need advice about which tool to choose?Ask the StackShare community!
Oracle vs Presto: What are the differences?
Key Differences between Oracle and Presto
Oracle and Presto are both widely used database management systems, but they differ in several key aspects. Here are six key differences between Oracle and Presto:
1. Scalability and Performance: Oracle is known for its scalability and reliable performance, offering advanced features like caching and indexing that optimize query execution. On the other hand, Presto excels in distributed computing scenarios and is specifically designed for running queries on large-scale distributed systems, making it highly scalable and capable of handling massive data volumes efficiently.
2. Query Language and Syntax: Oracle uses SQL (Structured Query Language) as its primary query language, which follows a declarative syntax style. Presto, on the other hand, supports ANSI SQL syntax but also includes several additional functions and operators, allowing for more flexible and powerful SQL queries.
3. Data Source Connectivity: Oracle is primarily designed for working with its own database system, offering seamless connectivity and integration within the Oracle ecosystem. Presto, on the contrary, is designed to connect with various data sources, including relational databases, NoSQL databases, cloud storage systems, and more, making it more versatile and adaptable to different data sources.
4. Architecture and Storage: Oracle follows a traditional client-server architecture, where the database server holds the data and processes queries sent by client applications. On the other hand, Presto follows a distributed architecture, where data is stored across multiple nodes, allowing for parallel processing and distributed query execution.
5. Cost and Licensing: Oracle is a commercial database management system that requires a license to use. The licensing cost, including additional features and support, can be quite substantial for enterprise deployments. Presto, on the other hand, is an open-source system and can be used for free, which makes it a cost-effective choice for many organizations seeking to reduce infrastructure expenses.
6. Community and Ecosystem: Oracle has been in the market for decades and has a large user community, extensive documentation, and a mature ecosystem. It provides comprehensive support and a wide range of additional features and tools. Presto, being a relative newcomer, has a smaller but rapidly growing community and ecosystem. It offers active community support, regular updates, and integration with various modern data tools and frameworks.
In summary, Oracle excels in scalability, reliability, and integration within its ecosystem, while Presto shines in distributed computing, versatility, and cost-effectiveness with its open-source nature. Choosing between the two depends on specific requirements, existing infrastructure, and the need for advanced features or extensive community support.
We have chosen Tibero over Oracle because we want to offer a PL/SQL-as-a-Service that the users can deploy in any Cloud without concerns from our website at some standard cost. With Oracle Database, developers would have to worry about what they implement and the related costs of each feature but the licensing model from Tibero is just 1 price and we have all features included, so we don't have to worry and developers using our SQLaaS neither. PostgreSQL would be open source. We have chosen Tibero over Oracle because we want to offer a PL/SQL that you can deploy in any Cloud without concerns. PostgreSQL would be the open source option but we need to offer an SQLaaS with encryption and more enterprise features in the background and best value option we have found, it was Tibero Database for PL/SQL-based applications.
We wanted a JSON datastore that could save the state of our bioinformatics visualizations without destructive normalization. As a leading NoSQL data storage technology, MongoDB has been a perfect fit for our needs. Plus it's open source, and has an enterprise SLA scale-out path, with support of hosted solutions like Atlas. Mongo has been an absolute champ. So much so that SQL and Oracle have begun shipping JSON column types as a new feature for their databases. And when Fast Healthcare Interoperability Resources (FHIR) announced support for JSON, we basically had our FHIR datalake technology.
In the field of bioinformatics, we regularly work with hierarchical and unstructured document data. Unstructured text data from PDFs, image data from radiographs, phylogenetic trees and cladograms, network graphs, streaming ECG data... none of it fits into a traditional SQL database particularly well. As such, we prefer to use document oriented databases.
MongoDB is probably the oldest component in our stack besides Javascript, having been in it for over 5 years. At the time, we were looking for a technology that could simply cache our data visualization state (stored in JSON) in a database as-is without any destructive normalization. MongoDB was the perfect tool; and has been exceeding expectations ever since.
Trivia fact: some of the earliest electronic medical records (EMRs) used a document oriented database called MUMPS as early as the 1960s, prior to the invention of SQL. MUMPS is still in use today in systems like Epic and VistA, and stores upwards of 40% of all medical records at hospitals. So, we saw MongoDB as something as a 21st century version of the MUMPS database.
To provide employees with the critical need of interactive querying, we’ve worked with Presto, an open-source distributed SQL query engine, over the years. Operating Presto at Pinterest’s scale has involved resolving quite a few challenges like, supporting deeply nested and huge thrift schemas, slow/ bad worker detection and remediation, auto-scaling cluster, graceful cluster shutdown and impersonation support for ldap authenticator.
Our infrastructure is built on top of Amazon EC2 and we leverage Amazon S3 for storing our data. This separates compute and storage layers, and allows multiple compute clusters to share the S3 data.
We have hundreds of petabytes of data and tens of thousands of Apache Hive tables. Our Presto clusters are comprised of a fleet of 450 r4.8xl EC2 instances. Presto clusters together have over 100 TBs of memory and 14K vcpu cores. Within Pinterest, we have close to more than 1,000 monthly active users (out of total 1,600+ Pinterest employees) using Presto, who run about 400K queries on these clusters per month.
Each query submitted to Presto cluster is logged to a Kafka topic via Singer. Singer is a logging agent built at Pinterest and we talked about it in a previous post. Each query is logged when it is submitted and when it finishes. When a Presto cluster crashes, we will have query submitted events without corresponding query finished events. These events enable us to capture the effect of cluster crashes over time.
Each Presto cluster at Pinterest has workers on a mix of dedicated AWS EC2 instances and Kubernetes pods. Kubernetes platform provides us with the capability to add and remove workers from a Presto cluster very quickly. The best-case latency on bringing up a new worker on Kubernetes is less than a minute. However, when the Kubernetes cluster itself is out of resources and needs to scale up, it can take up to ten minutes. Some other advantages of deploying on Kubernetes platform is that our Presto deployment becomes agnostic of cloud vendor, instance types, OS, etc.
#BigData #AWS #DataScience #DataEngineering
The platform deals with time series data from sensors aggregated against things( event data that originates at periodic intervals). We use Cassandra as our distributed database to store time series data. Aggregated data insights from Cassandra is delivered as web API for consumption from other applications. Presto as a distributed sql querying engine, can provide a faster execution time provided the queries are tuned for proper distribution across the cluster. Another objective that we had was to combine Cassandra table data with other business data from RDBMS or other big data systems where presto through its connector architecture would have opened up a whole lot of options for us.
Pros of Oracle
- Reliable44
- Enterprise33
- High Availability15
- Hard to maintain5
- Expensive5
- Maintainable4
- Hard to use4
- High complexity3
Pros of Presto
- Works directly on files in s3 (no ETL)18
- Open-source13
- Join multiple databases12
- Scalable10
- Gets ready in minutes7
- MPP6
Sign up to add or upvote prosMake informed product decisions
Cons of Oracle
- Expensive14