PostgreSQL
Last updated
Last updated
You can quickly import data from your PostgreSQL Database into Exploratory.
Create a connection following this instruction.
Whether the connection is SSL or not is automatically detected.
Click '+' button next to 'Data Frames' and select 'Database Data'.
Click PostgreSQL to select.
Click Preview button to see the data back from your PostgreSQL db.
If it looks ok, then you can click 'Import' to import the data into Exploratory.
First, click Parameter link on the SQL Data Import Dialog.
Second, define a parameter and click Save button.
Finally, you can use @{} to surround a variable name inside the query like below.
If you type @ then it suggests parameters like below.
Here's a blog post for more detail.
From performance point of view, we no longer show actual number of rows which can be only fetched by executing whole query again.
If you still want to show the actual number of query for your query, you can do so by setting System Configuration.
Then set "Yes" For "Show Actual Number of Rows on SQL Data Import Dialog"
This will show you Actual Number of Rows like below.
If you are using Amazon RDS as your MySQL database, and encounter a database connection error, please go to AWS console and make sure you added your client PC's IP address to an inbound rule for your DB Security Group associated with the MySQL database instance.
When you try to import data from PostgreSQL instance, you might get the below error if your SQL query contains columns whose data type is geometry which is not supported in Exploratory.
Error : No method asJSON S3 class: pq_geometry
Please refer to this community post for the workaround.