delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/13/13:07:41

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; q=dns; s=default; b=mUJtbBP/0PW7NDoO
bhiDBbxNVOYUuAoOteMPi+cUwuHf1n+cakulZj0fp03mLdZO5zCuuwHigTsziOif
gmnePJzJPi44xeP8DL+4phpy9/Ph/zrp7tVmsTtS008zHi6S0rq9LSnigxgKkvyF
84IPUCxlS1TSg7usP98IE9f5iwo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; s=default; bh=Q9qg3RmzFXb3UArzV58FSV
k2ois=; b=f5qzlPkLKQ+9qyAyGYN5YHnZGOK0toyt1cYQJ29k+s5vGh0xwpWcH+
E0kGhBdFvqG23p+11Kbr67kb4Ry5w/8jDh+Lyhgb6JBv0Rb968rde/PyQm9p34bb
me8hdpzEaS2mncZKLsCBh7NkmKIwyNMKtChic9wRmR41FMz5R0pQ8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT nexgo DOT de>
Subject: Re: [ANNOUNCEMENT] [TEST] sqlite3-3.7.17-3
Date: Thu, 13 Jun 2013 19:07:10 +0200
Lines: 44
Message-ID: <87vc5i548x.fsf@Rainer.invalid>
References: <announce DOT 51B73B35 DOT 7010206 AT etr-usa DOT com>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Warren Young writes:
> This version of Cygwin SQLite also makes one other big, potentially
> breaking change: temporary files are created in-memory exclusively, by
> default.

I've been reading the documentation for that option again and it appears
that eventually the temporary table _will_ be committed to disk anyway
when it exceeds some size threshold (or SQLite runs out of page
buffers), so it looks that whatever problems with creating or using such
an actual file should manifest itself before the table gets that large.
This would also explain why there is no strong warning about this
potentially breaking with large temporary tables, I'd think.

> There is some concern that this could cause problems with huge DB
> files on 32-bit Cygwin.  If this version of SQLite fails with some
> out-of-memory error with your DB, there is a pragma you can set to
> make it behave the old way:
>
> 	https://www.sqlite.org/pragma.html#pragma_temp_store
>
> If setting this pragma to 1 fixes such an error, I want to hear it!
> (I'd also be curious to know how big the DB file is, and how much RAM
> there is in your machine.)

A new version of DBD::SQLite was released just recently, so I took the
occasion and built it against the test version of sqlite3 today.  I've
added "pragma TEMP_STORE=1" to the test that originally triggered the
"treat Cygwin as UNIX" saga and this still works, not setting
CYGWIN_SQLITE_LOCKING to anything at all.  That test doesn't have
concurrency so locking is not really involved, however I can't see why
temp table files and locking would interfere at all.  I think it would
be exceedingly rare that any other process would know the name of the
file backing the table or the directory that it lives in.  I've lost
track of what values use which locking strategy in the latest build, so
let me know if I should try a something different as well.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019