Re: sqlite disk I/O problem August 02, 2009 08:26PM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 03, 2009 02:56AM | Registered: 15 years ago Posts: 303 |
Re: sqlite disk I/O problem August 03, 2009 02:16PM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 03, 2009 08:30PM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 03, 2009 11:07PM | Registered: 16 years ago Posts: 78 |
Re: sqlite disk I/O problem August 04, 2009 07:22PM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 06, 2009 12:47AM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 06, 2009 10:21AM | Registered: 16 years ago Posts: 78 |
Re: sqlite disk I/O problem August 06, 2009 11:18AM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 06, 2009 11:16PM | Registered: 16 years ago Posts: 78 |
83 /* Disabling transactions slows down db creation, but at least it works! */ 84 int i; 85 // sqlite3_exec( db, "BEGIN;", NULL, 0, &errorMsg ); //disabled 86 for ( i = 0; i < 1024; ++i ) { 87 char command[ 64 ]; 88 snprintf( command, 64, "INSERT INTO test (string) VALUES (\"string %d\")", i ); 89 result = sqlite3_exec( db, command, NULL, 0, &errorMsg ); 90 if ( result != SQLITE_OK ) { 91 printf( "%s:%s\n", __FUNCTION__, errorMsg ); 92 sqlite3_free( errorMsg ); 93 quit(); 94 95 } 96 // sqlite3_exec( db, "COMMIT;", NULL, 0, &errorMsg ); //disabled 97 }
Re: sqlite disk I/O problem August 07, 2009 02:02AM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 08, 2009 04:10AM | Registered: 16 years ago Posts: 78 |
Re: sqlite disk I/O problem August 08, 2009 11:14AM | Registered: 16 years ago Posts: 48 |
#elif SQLITE_OS_LIBOGC time_t t; time(&t); *prNow = t/86400.0 + 2440587.5;
Re: sqlite disk I/O problem August 09, 2009 02:20AM | Registered: 16 years ago Posts: 78 |
/* Include this just after the call to sqlite3_open_v2 in db.c sqlite3_exec( db, "PRAGMA journal_mode=MEMORY;", NULL, 0, &errorMsg );
Re: sqlite disk I/O problem August 09, 2009 01:28PM | Registered: 16 years ago Posts: 48 |
C:\wiidev\sqlitexample2>make linking ... sqlitexample2.elf c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/lib\libc.a(lib_a-sysgettod.o): In function `gettimeofday': (.text+0x20): undefined reference to `_gettimeofday_r' collect2: ld returned 1 exit status make[1]: *** [/c/wiidev/sqlitexample2/sqlitexample2.elf] Error 1 make: *** [build] Error 2
Re: sqlite disk I/O problem August 12, 2009 01:22AM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 20, 2009 09:16AM | Registered: 16 years ago Posts: 78 |
Re: sqlite disk I/O problem August 20, 2009 03:11PM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 20, 2009 03:31PM | Registered: 16 years ago Posts: 48 |
Re: sqlite disk I/O problem August 22, 2009 03:35AM | Registered: 16 years ago Posts: 78 |