Skip to content

Commit

Permalink
Update mysql.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bcogrel authored Apr 5, 2024
1 parent 5473444 commit afd6046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion guide/databases/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ Through the [MySQL](https://mysql.com) connector, Ontop is able to construct VKG
The following shows the content of a sample `.properties` file that can be used to connect Ontop to MySQL:

```bash
jdbc.url = jdbc:mysql://localhost:3306/defaultdatabase
jdbc.url = jdbc:mysql://localhost:3306/defaultdatabase?useCursorFetch=true
jdbc.user = user
jdbc.password = password
jdbc.driver = com.mysql.cj.jdbc.Driver
```

:::warning
The parameter `useCursorFetch=true` needs to be added to the JDBC URL for streaming to be enabled. Otherwise, the JDBC driver will block until the full result set is fetched, which may cause out-of-memory exceptions when materializing or running large queries.
:::


## Nested Type Support

Ontop implements explicit compatibility with the MySQL type `JSON` which can be used with the [flatten lens](/guide/advanced/lenses#flattenlens). However, it cannot infer the type of the flattened result column.
Expand Down

0 comments on commit afd6046

Please sign in to comment.