How to speed-up download processing on pgAdmin4 query data from UI (one Windows)? - pgadmin-4

Correction
I'm running a simple query on pgAdmin4 to access some data:
select date
,sum(clicks) as clicks
from db.keyword
group by date
The query runs fine and displays my "Data Output" in the box below. The data length is only 737 rows so I want to download it straight from the UI.
I click the "Download as CSV" button (or hit F8) and it takes 15 minutes for the dialog window prompting me to save the data.
It's only 737 rows, so how can I speed this up?

You can click the download query result icon on the top right of the query window or press F8.

Related

How to display the last eclapsed time in SqlDevelopper when analysing query

As we can notice in my screenshot , We can see the object name , cost , cadinality and the last_cr_buffers_gets attribut in SqlDevelopper
But , how to display the last eclapsed time and other attributes?
I'm using Oracle sql developper 4.0 x64
Regards,
Bass
Preferences->Database->Autotrace/Explain Plan
However this particular column (last_elapsed_time) is on by default. Can it be that it is just scrolled out of view and reappear if you resize those super wide columns?

Improve SSRS Report execution

We have a SQL statement that executes in 0:07 seconds in Management Studio, its a query that returns some data like:
[Company Department] - [Exprense Type] - [Year/Month] - [Foreseen Budget] - [Expenses]
It's a 53k lines result. One calculated field is created on the dataset (Budget - Expenses).
In the SSRS report we have a matrix that shows the data like:
Columns: [Year/Month] (Group)
[Foreseen Budget] [Expenses] [Foreseen Budget - Expenses]
Lines: [Company Department][Expense Type]
When I try to generate the report I get 5 minutes in SSRS.
In the log I get :
TimeDataRetrieval:440
TimeProcessing: 8056
TimeRendering:39603
Start Time: 2016-08-24 16:40:26.030
End Time: 2016-08-24 16:41:14.220
It's like 1 minute in SSRS, which is acceptable, but in real execution the report only appears 5 minutes later.
What is happening, and how can I improve the real execution time?
What format are you rendering as? Are you viewing the rows from browser? It will take quite a bit of time for the SSRS engine to render and draw up 53K rows.
Here are a few suggestions:
You could make use of pagination - Only show a few rows at a time? Change the datasource to bring back a few rows at a time selecting from a temp table as Tyron suggested
Have you tried to use report process caching? This could help reduce the processing time
Ive described an example on this post:
SSRS with custom paging
As some suggestions came, I got that the problem was the total lines and then group then by date.
So I made a sollution in 2 steps:
1. I made a temptable with all the results
2. I worked in summarize the data in the table not in SSRS
Doing that I got a 1 minute report rendering.
Thanks folks for the help!

Unable to get datawindow group trailer and summary to slide up

I have
a report with grouping.
some items displayed on the group trailer band
an autosized datawindow in summary band
a footer band
A run of the report brings 5 rows of data returned in the report's detail band.
The problem is, the report displays 4 rows of data on the first page then automatically puts the last row of the data on a second page along with the group trailer band and the autosized datawindow in the summary band.
I think this is due to the associated row of the grouping mentioned in the following.
http://pbbraindump.wordpress.com/2008/05/25/groups-and-grouping/
So essentially there are 4 rows of data, followed by a large empty space in page 1, followed by 1 row of data on the second page + trailer + summary.
I've tried setting "Slide Up" on all of the items in the trailer group and the summary datawindow but it does not slide up to make the report 1 page even when it looks like there is enough space on the printed report.
Why does it not slide up? Can it be forced to slide up?
Have you checked the 'Autosize height' on all of the bands?

SSRS: 2008 run same procedure with diff params for multi month report

I'm all about recycling-)
I have report that user want to run for selected number of month back (let say from 1 to 12).
If they selected 6 month back (Jul-13 thru Jan-2104, then I need to produce 6 pages with monthly report on each of them, and sp is the SAME for all reports just different time params.
How I can reuse my code??
For now I have 12 Tablix(s) with New Page=START, Hide condition set based on datediff(m,startDate,endDate) individually for each Tablix.
Then I need to run same sp with diff params, can I add some dynamics into it? or I better to have 12 sp(s)?
Thanks
Mario
You can achieve this with a single dataset and a List Report Item with an embedded Tablix:
Set the List Grouping to Group/Sort first by: =Year(Fields!YourDateField.Value) and then by =Month(Fields!YourDateField.Value).
Set the Page Breaks on the List Grouping to "Between each instance of a group".
Drag your Tablix inside the List Report Item.
Let me know if you need more detail.

SQL Server Reporting Services Charts, How display more than 6 rows of cat name

First at all thanks for reading.
I have a problem in SQL Server Reporting Services with the chats. I am using bar char and I split the info by category = cat_name, then i want to split the bars for the value of that cat_name
Example:
Category group = cat_name
Value = cat_value
So the bar chart displays the info but it just shows 6 rows with the labels the others just show the bar with the value but not the name of the category.
I assumed that the bar chart has 6 rows to display name as default but anyone knows how to increase it as many as categories I have ??
I have many categories with value and the data is fine but I need to display the name of each category too :( and the report just shows me 6.
I can't post pic cause I don't have enough reputation
If all your data is showing (just not all the labels), then that seems to be discussed here under "Displaying all Labels on the Category Axis". It suggests you do the following:
Right-click on the Category axis
Select Axis Properties
Under the Axis Options tab, change Interval to 1.
If the interval is set to Auto, it will select the best interval to show 6 or fewer labels. More details on this here.
If not all of your data is showing, then make sure, under the Labels tab of the Axis Properties dialog, that Auto-Fit is disabled.

Resources