Microsoft MVP성태의 닷넷 이야기
SQLite journal_mode=wal 관련하여 질문드립니다. [링크 복사], [링크+제목 복사],
조회: 15617
글쓴 사람
강준
홈페이지
첨부 파일
 

안녕하세요
SQLite 로 Transaction 되고 있는 항목을 다른 세션에서 select 가 가능할까요?
즉, A Process 에서 1~10 을 insert 하고 있는중에 (commit 되기전) B Process 에서 2를 select 를 해오고 싶은데

journal_mode=wal, read_uncommitted = 1

위와 같이 설정을 하고 해보아도 잘안되서 질문드립니다. ㅜㅠ









[최초 등록일: ]
[최종 수정일: 8/24/2017]


비밀번호

댓글 작성자
 



2017-08-24 08시20분
Reading uncommitted changes from SQLite database
; https://stackoverflow.com/questions/7370947/reading-uncommitted-changes-from-sqlite-database

위의 답변이 2014년에 되어 있어서 여전히 유효한지는 모르겠으나, SQLite에서 read_uncommitted 모드는 shared_cache_mode를 사용할 때인데 이는 같은 프로세스에서만 해당한다고 합니다.
정성태

NoWriterDateCnt.TitleFile(s)