Skip to content

Commit

Permalink
Limiting size of data pull to prevent Postgres crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Oct 7, 2018
1 parent 7e013f1 commit cef51ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LegendMedCentral/DataPulls.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ getTcoDbs <- function(connection,
}

getTcoDbsStrict <- function(connection, exposureIds = c(), outcomeIds = c(), databaseIds = c()) {
sql <- "SELECT target_id, comparator_id, outcome_id, database_id FROM cohort_method_result WHERE analysis_id = 1"
sql <- "SELECT TOP 100 target_id, comparator_id, outcome_id, database_id FROM cohort_method_result WHERE analysis_id = 1"
parts <- c()
if (length(exposureIds) != 0) {
for (exposureId in exposureIds) {
Expand Down

0 comments on commit cef51ba

Please sign in to comment.