From: | "Andrej Ricnik-Bay" <andrej(dot)groups(at)gmail(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Minimising disk writes |
Date: | 2006-08-11 20:27:46 |
Message-ID: | b35603930608111327waa24d1dr47b0e1e986efe07d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On 8/12/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > I'm at the investigation stage of a project that involves putting a
> > database on an embedded device. One of the problems we face is that
> > the filesystem is on Flash Memory so we need to minimize any writes.
> > Is it just a bad idea to use postgresql for this type of thing?
> Fraid so ... PG is not designed with the idea of avoiding disk writes,
> indeed it's pretty aggressive at pushing committed data out to disk.
> You could maybe get away with flash storage for a read-mostly, very
> low update rate database, but the software isn't going to help you
> do it :-(
How feasible would it be to have the pg_data structure copied from
the Flash to e.g. a RAM disk, and only write it back occasionally? Or
have the "busier" parts, if the application has such, in RAM.
Of course I have no idea how big the flash-memory and the actual
RAM are, and the idea may be completely off.
Cheers,
Andrej
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Broersma Jr | 2006-08-11 23:40:11 | Re: executing a procedure withing a procedure? |
Previous Message | Garcia, Joshua | 2006-08-11 20:08:30 | Re: Readline, Postgresql and Solaris |