@@ -162,15 +162,21 @@ public async Task GetAsync()
162162 Assert . AreEqual ( customer . Id , loaded . Id ) ;
163163 }
164164
165+
165166 [ Test ]
166167 public async Task StressAsync ( )
167168 {
168169 const int defaultBusyTimeout = 100 ;
169170
170171 SQLiteAsyncConnection globalConn = GetAsyncConnection ( ) ;
171172
173+ // see http://stackoverflow.com/questions/12004426/sqlite-returns-sqlite-busy-in-wal-mode
172174 var journalMode = await globalConn . ExecuteScalarAsync < string > ( "PRAGMA journal_mode = wal" ) ; // = wal");
173175 Debug . WriteLine ( "journal_mode: " + journalMode ) ;
176+ var synchronous = await globalConn . ExecuteScalarAsync < string > ( "PRAGMA synchronous" ) ; // 2 = FULL
177+ Debug . WriteLine ( "synchronous: " + synchronous ) ;
178+ var pageSize = await globalConn . ExecuteScalarAsync < string > ( "PRAGMA page_size" ) ; // 1024 default
179+ Debug . WriteLine ( "page_size: " + pageSize ) ;
174180 var busyTimeout = await globalConn . ExecuteScalarAsync < string > (
175181 string . Format ( "PRAGMA busy_timeout = {0}" , defaultBusyTimeout ) ) ;
176182 Debug . WriteLine ( "busy_timeout: " + busyTimeout ) ;
@@ -188,7 +194,7 @@ public async Task StressAsync()
188194 {
189195 SQLiteAsyncConnection conn = GetAsyncConnection ( ) ;
190196
191- // Each connection retains the global journal_mode but somehow resets busy_timeout to 100
197+ // each connection retains the global journal_mode but somehow resets busy_timeout to 100
192198 busyTimeout = await globalConn . ExecuteScalarAsync < string > (
193199 string . Format ( "PRAGMA busy_timeout = {0}" , defaultBusyTimeout ) ) ;
194200// Debug.WriteLine("busy_timeout: " + busyTimeout);
0 commit comments