Skip to content

Redhsift Vs RDS MySQL benchmarking

0

I have an application which uses Java JDBC Spring as a backend framework, I've connected my application to RDS MySQL I've tested the results it is able to provide the results faster but when I tested the results with Redshift using amazon-redshift-jdbc driver which is taking more time to return the results.

I manually hit the query in redshift console using unload command it is able to unload the results so faster compared to the results of redshift of my application.

I want to know why the redshift is taking too much time for retreiving the results through the API call and mysql is faster with api call

asked 2 years ago429 views
2 Answers
0

Can you provide the SQL being executed? Keep in mind that redshift is a columnar database that is designed to be extremely fast at executing complex analytical workloads on very large datasets and rds MySQL is a row-oriented database that is designed to be very fast at transactional workloads such as a high volume single-row operations against modest sized data sets. Also keep in mind that depending on the command you’re executing, sporadic network congestion could be playing a role with the speed at which results are returned? Have you repeated the test at least three times to ensure consistency?

AWS
answered 2 years ago
  • I've used a sql query like

    select column1 as columna, column2 as columnb from table limit 100000;
    

    Also there is a scenario I've been using my query with offset to load the entire data with pagination

0

You are not doing a "select *" which in some cases can be an anti-pattern for columnar databases such as Redshift, you are instead picking a handful of specific columns that you want from the table - which is a best practice. 100k rows is a lot for any db to transmit over a jdbc connection let alone api call, but if you need to do it, so be it. I would suggest investigating if your redshift cluster is undersized by trying increasing the "horsepower" (i.e. node count/type or RPU)?

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.