We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TODO in the short term:
Add support for concurrent connections in DataStorage backends
In particular, DataStorageLogFile and DataStorageSQLite don't have any mecanism such as file lock.
DataStorageLogFile
DataStorageSQLite
This might degrade the performance of those backends, which can be counter-acted with implementing #148 to mitigate any impact.
library(parallel) log_file <- shiny.telemetry::DataStorageLogFile$new("log_file.txt") # corrupt log file log_file <- shiny.telemetry::DataStorageSQLite$new("log_db.sqlite") # fails to insert with "Error : database is locked" log_file$insert(app_name = "yada", session = "fake", type = "text", details = "First write") mclapply( seq(10000), \(.x) { # log_file <- shiny.telemetry::DataStoragePostgreSQL$new(user = "postgres", password = "mysecretpassword") log_file$insert(app_name = "yada", session = "fake", type = "text", details = "I 💙 shiny.telemetry") # log_file$close() }, mc.cores = getOption("mc.cores", 8) ) log_file$read_event_data()
...LogFile
...SQLite
TBD
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Guidelines
Description
TODO in the short term:
Add support for concurrent connections in DataStorage backends
In particular,
DataStorageLogFile
andDataStorageSQLite
don't have any mecanism such as file lock.This might degrade the performance of those backends, which can be counter-acted with implementing #148 to mitigate any impact.
Problem
Proposed Solution
...LogFile
: filelock...SQLite
: TBDAlternatives Considered
TBD
The text was updated successfully, but these errors were encountered: