On 8/25/2013 11:08 PM, 高健 wrote:
That program is written by Java.
It is to use JDBC to pull out data from DB, while the query joined
some table together, It will return about 3000,000 records.
Then the program will use JDBC again to write the records row by row
, to inert into another table
Hello:
Sorry for disturbing.
I am now encountering a serious problem: memory is not enough.
My customer reported that when they run a program they found the totall
memory and disk i/o usage all reached to threshold value(80%).
That program is written by Java.
It is to use JDBC to pull out data
Hi :
Thanks to Alvaro! Sorry for replying lately.
I have understood a little about it.
But the description of full_page_write made me even confused. Sorry that
maybe I go to another problem:
It is said:
http://www.postgresql.org/docs/9.2/static/runtime-config-wal.html#GUC-FULL-PAGE-WRITES
-
On Sun, Aug 25, 2013 at 8:36 PM, BladeOfLight16 wrote:
> This appears to be some kind of equal interval problem.
>
> SELECT v_rec1.user,
> WIDTH_BUCKET(v_rec_fts.lev, 0, 100, 4) AS bucket
> COUNT(*) as count,
> FROM v_rec2
> GROUP BY user, bucket;
>
> (Untested, but this should be
On Sat, Aug 24, 2013 at 7:15 PM, Korisk wrote:
> Hi!
> I want quick insert into db a lot of data (in form of triplets). Data is
> formed dynamical so "COPY" is not suitable.
> I tried batch insert like this:
>
> insert into triplets values (1,1,1);
> insert into triplets values (1,1,1), (3,2,5),
On Sun, Aug 25, 2013 at 5:59 PM, Janek Sendrowski wrote:
> SELECT v_rec1.user,
> sum(CASE WHEN v_rec_fts.lev BETWEEN 0 AND 25 THEN 1 ELSE 0 END) as
> "0 to 25",
> sum(CASE WHEN v_rec_fts.lev BETWEEN 25 AND 50 THEN 1 ELSE 0 END)
> as "25 to 50",
> sum(CASE WHEN v_rec_fts.l
Janek Sendrowski wrote
> Sorry, I formulated it wrong.
>
> My problem is, that I want to count the ranges for every user, but if I
> use count(range), it counts the ranges of all users.
Assuming your example output is indeed what you desire:
SELECT user, '0 to 25'::varchar AS percentage, count
Sorry, I formulated it wrong.
My problem is, that I want to count the ranges for every user, but if I use count(range), it counts the ranges of all users.
Janek Sendrowski
Janek Sendrowski wrote
> Hi,
>
> Thats my code snipped:
>
> SELECT v_rec1.user,
> sum(CASE WHEN v_rec_fts.lev BETWEEN 0 AND 25 THEN 1 ELSE 0 END) as
> "0 to 25",
> sum(CASE WHEN v_rec_fts.lev BETWEEN 25 AND 50 THEN 1 ELSE 0 END)
> as "25 to 50",
> sum(CASE WHEN v_rec_fts
Hi,
Thats my code snipped:
SELECT v_rec1.user,
sum(CASE WHEN v_rec_fts.lev BETWEEN 0 AND 25 THEN 1 ELSE 0 END) as "0
to 25",
sum(CASE WHEN v_rec_fts.lev BETWEEN 25 AND 50 THEN 1 ELSE 0 END) as "25
to 50",
sum(CASE WHEN v_rec_fts.lev BETWEEN 50 AND 100 THEN 1 ELSE 0 END
10 matches
Mail list logo