Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 30020 invoked from network); 8 Oct 2010 04:38:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Oct 2010 04:38:39 -0000 Received: (qmail 37048 invoked by uid 500); 8 Oct 2010 04:38:39 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 36944 invoked by uid 500); 8 Oct 2010 04:38:37 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 36936 invoked by uid 99); 8 Oct 2010 04:38:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 04:38:36 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ondrej.ivanic@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 04:38:31 +0000 Received: by wyi11 with SMTP id 11so902009wyi.31 for ; Thu, 07 Oct 2010 21:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=vvtN4UXLDqEE9rF3mP1KWD8v/6X/8YTM16J4jt3mZtg=; b=FVsqZRQFMhbfLbsLccCgyt0/uHefRLIZkloHQ4TmSjjFlCgULsruVbFPRpsv8Fl6Yx ixp1izJGFMG44Su6OHKboO083yM3mZB/itXGtBzJnLA04gjtwTuBaqjxgXVeS1yn60Qk ksMlr8pFowGfG21y6DGmlImeqkJMBQCjbGuFs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=s0FqdIFXa8dM2jcpdPhXiJ+8muz/N4s0YEqVhzRJjk/2pThnQIDE1EMXp/5bhAtauN lGaS6U92KUhQRuMsx1vk0LPB15YsholYTzmoceYr8yfLW9sNzxl6mQJ079qQdkvVWULd zyWdaTHhndps8OROlMvnkTZmwVJFazKKA9PXQ= MIME-Version: 1.0 Received: by 10.216.154.131 with SMTP id h3mr52410wek.74.1286512690547; Thu, 07 Oct 2010 21:38:10 -0700 (PDT) Received: by 10.216.80.130 with HTTP; Thu, 7 Oct 2010 21:38:10 -0700 (PDT) In-Reply-To: <4CAD7553.9000601@mpexnet.de> References: <4CAD7553.9000601@mpexnet.de> Date: Fri, 8 Oct 2010 15:38:10 +1100 Message-ID: Subject: Re: JDBC sampler very slow From: =?UTF-8?Q?Ondrej_Ivani=C4=8D?= To: JMeter Users List Content-Type: text/plain; charset=UTF-8 Hi, I do not care about network perforce in this test because I want to test database server as is. Using JDBC sampler I can't fetch more than 100 rows. I think i'll just write simple PHP script which executes all that queries using 'ab' (Apache HTTP server benchmarking tool) and OpenOffice to get some reliable results and fancy charts :) On Thu, Oct 7, 2010 at 6:22 PM, Felix Frank wrote: >> Part of the database benchark (Postgres 8.4, recent JDBC4 Postgresql >> Driver) is query which fetches 1000 recent events (row size is ~1k so >> 1mb of data in total): >> >> select * from event order by datetime desc limit 1000 >> >> When query is executed using JDBC sampler it takes between 2 and 5 >> minutes to finish comparing to less than 50ms using psql or simple PHP >> script. I suspec that value of JDBC fetch size parameter is set too >> low. Is it possible to change this parameter? >> >> I found the following workaround: >> explain analyze select * from event order by datetime desc limit 1000 >> which executes query (analyze = carry out the command and show the >> actual run times) on the server and query result is discarded. The >> question is if test is still reliable... > > Hi, > > this question reminds me of discussions we had here about whether images > and static content should be included in web tests or not. > > The answers were "yes", "no", "maybe" and "it depends", in no particular > order or prioritization. -- Ondrej Ivanic (ondrej.ivanic@gmail.com) --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org