Does duckdb allow Concurrent read? #1039
              
                Unanswered
              
          
                  
                    
                      shahronak47
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         I believe it is possible, try dbConnect(duckdb::duckdb(), dbdir = "master_file.duckdb", read_only = TRUE) but using read_only = TRUE you cannot write to duckdb from multiple processes  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am having a duckdb file which has a table (
master_file) and I want to know if concurrent read is allowed or not. Based on reading several posts online https://duckdb.org/docs/connect/concurrency and chatting with chatGPT the answer seems to be yes and I want to believe it but I am struggling to prove this.I have tried this chunk of code for the same
However, this returns an error
My idea was that if there is an overlap between start and end time between two processes then we can say that multiple reads was allowed but this didn't work. How do I prove that multiple read in duckdb is allowed?
Beta Was this translation helpful? Give feedback.
All reactions