Skip to main content



      Home
Home » Archived » BIRT » Why is it so SLOW ?
Why is it so SLOW ? [message #171439] Mon, 19 June 2006 13:27 Go to next message
Eclipse UserFriend
Originally posted by: vincent.tiberghien.ird.sn

Hi,
I have a dataset based on a SQL Query that use a UNION Clause between
two tables and that exit a 237.000 rows table.
In my report, i just add a presentation table with only a footer, i
insert there the expression Total.count(row["my_primary_key"])
Then when i execute the report, it takes years and years, sometimes it
never ends.

The SQL Query executed via MS ACCESS or MYSQL takes about 10 seconds.

I use BIRT 2.0.1
I have tryed connection with a MS ACCESS database through RmiJDBC or the
same database with MySQL and com.mysql.jdbc.Driver (MySQL v3.1), and
it's the same problem.
My computer is a Pentium 4 2GHz, 256MRam
Re: Why is it so SLOW ? [message #171445 is a reply to message #171439] Mon, 19 June 2006 20:45 Go to previous messageGo to next message
Eclipse UserFriend
The expression Total.count(row["my_primary_key"]) doesn't look right. If you
just want a count of the rows use Total.count() with no parameters. If you
use Total.count(row["my_primary_key"]) the parameter row["my_primary_key"]
becomes the filter parameter.

--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer

"vincent tiberghien" <vincent.tiberghien@ird.sn> wrote in message
news:e76n08$5b4$1@utils.eclipse.org...
> Hi,
> I have a dataset based on a SQL Query that use a UNION Clause between
> two tables and that exit a 237.000 rows table.
> In my report, i just add a presentation table with only a footer, i
> insert there the expression Total.count(row["my_primary_key"])
> Then when i execute the report, it takes years and years, sometimes it
> never ends.
>
> The SQL Query executed via MS ACCESS or MYSQL takes about 10 seconds.
>
> I use BIRT 2.0.1
> I have tryed connection with a MS ACCESS database through RmiJDBC or the
> same database with MySQL and com.mysql.jdbc.Driver (MySQL v3.1), and
> it's the same problem.
> My computer is a Pentium 4 2GHz, 256MRam
Re: Why is it so SLOW ? [message #171606 is a reply to message #171445] Tue, 20 June 2006 05:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vincent.tiberghien.ird.sn

Ok, i have replaced Total.count(row["my_primary_key"])with Total.count()
and the problem is still the same.
The generation of the report never ends.



Gary Xue a écrit :
> The expression Total.count(row["my_primary_key"]) doesn't look right. If you
> just want a count of the rows use Total.count() with no parameters. If you
> use Total.count(row["my_primary_key"]) the parameter row["my_primary_key"]
> becomes the filter parameter.
>
Re: Why is it so SLOW ? [message #171835 is a reply to message #171439] Tue, 20 June 2006 14:35 Go to previous messageGo to next message
Eclipse UserFriend
vincent tiberghien wrote:
> Hi,
> I have a dataset based on a SQL Query that use a UNION Clause between
> two tables and that exit a 237.000 rows table.
> In my report, i just add a presentation table with only a footer, i
> insert there the expression Total.count(row["my_primary_key"])
> Then when i execute the report, it takes years and years, sometimes it
> never ends.
>
> The SQL Query executed via MS ACCESS or MYSQL takes about 10 seconds.
>
> I use BIRT 2.0.1
> I have tryed connection with a MS ACCESS database through RmiJDBC or the
> same database with MySQL and com.mysql.jdbc.Driver (MySQL v3.1), and
> it's the same problem.
> My computer is a Pentium 4 2GHz, 256MRam

Don't know if it is related, but I've noticed a significant slow-down
when you bind each 'data' widget rather than bind the entire table.
Re: Why is it so SLOW ? [message #171859 is a reply to message #171606] Tue, 20 June 2006 14:57 Go to previous messageGo to next message
Eclipse UserFriend
Can you post your report design here?


--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer
"vincent tiberghien" <vincent.tiberghien@ird.sn> wrote in message
news:e78fv6$3lp$1@utils.eclipse.org...
> Ok, i have replaced Total.count(row["my_primary_key"])with Total.count()
> and the problem is still the same.
> The generation of the report never ends.
>
>
>
> Gary Xue a
Re: Why is it so SLOW ? [message #171906 is a reply to message #171439] Tue, 20 June 2006 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ejf7.hotmail.com

I'm having the same issue.

When the report fields aren't bound to any dataset, it doesn't go slow.
But when it is bound to my dataset, which has about 30 columns, it takes
forever to run. The dataset contains about 10,000 rows.
Re: Why is it so SLOW ? [message #172064 is a reply to message #171859] Wed, 21 June 2006 05:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vincent.tiberghien.ird.sn

This is a multi-part message in MIME format.
--------------030407090008080409010806
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

there you go

Gary Xue a
Re: Why is it so SLOW ? [message #172072 is a reply to message #171859] Wed, 21 June 2006 05:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vincent.tiberghien.ird.sn

This is a multi-part message in MIME format.
--------------080003060000050108010107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

sorry, here is the correct one

Gary Xue a
Re: Why is it so SLOW ? [message #172125 is a reply to message #171439] Wed, 21 June 2006 07:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vincent.tiberghien.ird.sn

i thought maybe the SQL Query of my dataset was too long.
so i created a new table in my dataset with the result of my query, then
i just execute a "select *" on that table in my dataset, but my report
is still very very slow to execute.
Has anyone ever succeeded in working with a table of more than 200.000
lines ?


vincent tiberghien a écrit :
> Hi,
> I have a dataset based on a SQL Query that use a UNION Clause between
> two tables and that exit a 237.000 rows table.
> In my report, i just add a presentation table with only a footer, i
> insert there the expression Total.count(row["my_primary_key"])
> Then when i execute the report, it takes years and years, sometimes it
> never ends.
>
> The SQL Query executed via MS ACCESS or MYSQL takes about 10 seconds.
>
> I use BIRT 2.0.1
> I have tryed connection with a MS ACCESS database through RmiJDBC or the
> same database with MySQL and com.mysql.jdbc.Driver (MySQL v3.1), and
> it's the same problem.
> My computer is a Pentium 4 2GHz, 256MRam
Re: Why is it so SLOW ? [message #172190 is a reply to message #172125] Wed, 21 June 2006 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ejf7.hotmail.com

If you only select some of the fields in your table, I've found that it
doesn't take too long. I'm working with some tables that have around
500,000 rows, and as long as I only select a couple of the fields, it
doesn't take very long to run the report.

If I do a select *, and there are very many columns in the table, it takes
a VERY long time to run the report. I would suggest selecting only
necessary columns in the table if you can get by without some of them.
Hopefully there will be a fix that makes it run faster with more columns.
Re: Why is it so SLOW ? [message #173115 is a reply to message #172190] Fri, 23 June 2006 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vincent.tiberghien.ird.sn

it doesn't work in my case.


Eric a écrit :
> If you only select some of the fields in your table, I've found that it
> doesn't take too long. I'm working with some tables that have around
> 500,000 rows, and as long as I only select a couple of the fields, it
> doesn't take very long to run the report.
>
> If I do a select *, and there are very many columns in the table, it
> takes a VERY long time to run the report. I would suggest selecting only
> necessary columns in the table if you can get by without some of them.
> Hopefully there will be a fix that makes it run faster with more columns.
>
Re: Why is it so SLOW ? [message #173138 is a reply to message #172072] Fri, 23 June 2006 17:57 Go to previous message
Eclipse UserFriend
Vincent,
The report design looks fine. Can you please file a bugzilla entry so we can
look into the possible performance problem? Please provide as much as
information as possible to ensure that we reproduce this (e.g., how long is
'years and years' when you run it. If the report never ends do you see any
error messages etc). It's also important to provide your JVM memory setting.
Have you experimented with different VM size settings to see if it changes
things?

Also it's worth pointing out that if at all possible, having your RDBMS do
the aggregation (such as counting). Having BIRT handle the aggregation is
bound to be a lot slower due to the large amount of data rows that must be
passed from the server. If you just want a count of rows create a data set
that does a SELECT COUNT(...) FROM ... and have your data item bound to that
data set.

thanks,
--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer
"vincent tiberghien" <vincent.tiberghien@ird.sn> wrote in message
news:e7b3s6$j6k$1@utils.eclipse.org...
> sorry, here is the correct one
>
> Gary Xue a
Previous Topic:RC5 chart preview KO
Next Topic:Grid to iterate over data
Goto Forum:
  


Current Time: Sun May 11 06:50:15 EDT 2025

Powered by FUDForum. Page generated in 0.10693 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top