Skip to content

Commit

Permalink
feat(benchmark): Reduce data-size on SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Mar 21, 2024
1 parent 83a3308 commit ff47b72
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions data-raw/benchmark.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ for (version in c("CRAN", "main", "branch")) {
dplyr::rename_with(~ tolower(gsub(".", "_", .x, fixed = TRUE)))
}

n <- 10
# Open connection to the database
conns <- get_test_conns()
conn <- conns[[1]]

n <- ifelse(names(conn) == "SQLite", 5, 10)
data_1 <- data_generator(n)
data_2 <- data_generator(2 * n) |>
dplyr::mutate(
Expand All @@ -69,10 +73,7 @@ for (version in c("CRAN", "main", "branch")) {
)
)

conns <- get_test_conns()
conn <- conns[[1]]

# copy data to the conns
# Copy data to the conns
data_on_conn <- list(
suppressMessages(
dplyr::copy_to(conn, data_1, name = id("test.SCDB_data_1", conn), overwrite = TRUE, temporary = FALSE)
Expand Down

0 comments on commit ff47b72

Please sign in to comment.