Speed for query
Dear all,
If i want to select data from the table that without index.
whice statement that i should be used for the better speed between
"select * from table" or "select count(*) from table" ?
Thanks for advance
Chara
Except the different result, a test is easy :
SQL> ed
Wrote file afiedt.buf
1 begin
2 for i in 1..100000 loop
3 insert into ct values (i);
4 end loop;
5* end;
6 /
PL/SQL procedure successfully completed.
SQL> set timi on
SQL> set autot traceonly explain stat
SQL> select count(*) from ct;
Elapsed: 00:00:00.00
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 SORT (AGGREGATE)
2 1 TABLE ACCESS (FULL) OF 'CT'
Statistics
0 recursive calls
0 db block gets
156 consistent gets
0 physical reads
0 redo size
406 bytes sent via SQL*Net to client
499 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
SQL> select * from ct;
100000 rows selected.
Elapsed: 00:00:01.00
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 TABLE ACCESS (FULL) OF 'CT'
Statistics
0 recursive calls
0 db block gets
6823 consistent gets
0 physical reads
0 redo size
1415959 bytes sent via SQL*Net to client
73825 bytes received via SQL*Net from client
6668 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
100000 rows processed
SQL> Nicolas.
Similar Messages
-
HI all
Please help to evaluate the explian plan for query suppose the following is the plan
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 7 | 1260 | 303 (1)| 00:00:04 |
| 1 | SORT ORDER BY | | 7 | 1260 | 303 (1)| 00:00:04 |
|* 2 | FILTER | | | | | |
| 3 | NESTED LOOPS | | | | | |
| 4 | NESTED LOOPS | | 7 | 1260 | 302 (1)| 00:00:04 |
| 5 | NESTED LOOPS | | 7 | 791 | 281 (1)| 00:00:04 |
PLAN_TABLE_OUTPUT
|* 6 | TABLE ACCESS BY INDEX ROWID| TASKDETAIL | 7 | 574 | 267 (1)| 00:00:04 |
|* 7 | INDEX SKIP SCAN | IDX_TD_TTS | 2726 | | 29 (0)| 00:00:01 |
|* 8 | TABLE ACCESS BY INDEX ROWID| ORDERS | 1 | 31 | 2 (0)| 00:00:01 |
|* 9 | INDEX UNIQUE SCAN | PK_SYS_C004711 | 1 | | 1 (0)| 00:00:01 |
|* 10 | INDEX RANGE SCAN | TEPS_PICK_INDEX1 | 1 | | 2 (0)| 00:00:01 |
|* 11 | TABLE ACCESS BY INDEX ROWID | TASK_PICK_EPS | 1 | 67 | 3 (0)| 00:00:01 |
-----------------------------------------------------------------------------------------------------1. what are the columns rows ,bytes,cost ,time indicate usThe current 11.2 version of the documentation (URL below) would be better than the 9.2 version
http://docs.oracle.com/cd/E11882_01/server.112/e16638/ex_plan.htm#i19260
"Rows" is the expected number of rows that will be returned by that step of the plan
"Bytes" is the expected size of the result set returned by that step of the plan
"Time" is the expected execution time --- this can be grossly off because Oracle uses some assumptions about singe block read time, multiblock read time and CPU speed.
Hemant K Chitale
Edited by: Hemant K Chitale on Sep 25, 2012 3:04 PM -
How to create the layout for query in Bex 3.5
Hi All,
i have one requirement to do layout for query. Report like after passing the variable values and then they will select the required layout. It has to get output according layout selection fields.
i have no idea about how to create layout.
thanks in advance...
Thanks & Regards,
Mallikarjuna.kHi Gregor,
In the note 1149346 that you have mentioned, it says -
You must start the input-ready query in change mode.
BEx Analyzer: In the properties of the analysis grid, the switch
"Suppress new rows" must not be set. Furthermore,
the switch "Allow entry of plant values"
must be set in the local query properties.
I have not seen this setting Allow entry of plant values in a query - can you tell what is refers to? -
Hello,
I have a lightswitch web-application in development, which I need to copy from one computer to the other. I have tried doing it both through Git and by simply copying the solution and opening the project on another machine. The project builds without errors,
but when I try to debug it, it opens a web-browser, loads to 100% and pops up an error - Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound.
Now, I have tried repairing Visual Studio on my machine, reinstalling .NET framework and setting <basicAuthentication enabled="false" /> in web.config, yet it still does not run.
When using Fiddler, it shows an error while loading the application - "HTTP/1.1 500 Internal Server Error" , which I honestly don't know what it means.
The application uses ComponentOne and Telerik modules, but they are both installed on both machines.
The application does run perfectly on the original machine, but it is not working on any other one.
Both machines are using Win 8.1 and Visual Studio 2013 Update 4.
I have tried to look this up online, but most people's problem are when they are deploying the app, not just debugging. I would be really happy for any help with this issue.
Thanks!I have the same problem on one of my development machines. Whenever I create a new project, the System.IdentityModel.Tokens.Jwt nuget package is not referenced properly. The project compiles correctly but you are not able to debug as I get the same error
as you.
If you open up your references and there is an error next to any of your references make sure that you correct them. In the case of the jwt reference error, I have to remove the jwt reference and then add it back from the packages folder.
This may not be your problem but could point you in a direction? -
Transaction Code assignment for Query created in SQVI
Dear All,
Good morning I hope you are doing great...
Can any body help me out to assign transaction code for Query which was created through SQVI transaction.
Regards,
Murali.Hi Murali Mohan
1>go to SQVI t code and enter your query name and press enter
2>In the menu path select Quick view--> additional functions-->Generate Program
3>After Generating the program In the menu path select Quick view--> additional functions-->Display report Name
4>Now in se38 enter the report name in Program field and execute
5>You will get the Initial Selection screen of the report . Go to Menu of System -->Status
6> Note down the Program name and Screen number
7>Go to SE93 and Create a Z tcode for the query, Enter the description and importantly you have to select the 2nd Option radio Button Program and Selection Screen (Report Transaction) and Press enter
8>In the next screen enter the Report name In Program field and enter the screen number
9>In the classification Section select Professional user Transaction
10>In GUI support section select all the options i.e SAPGUI for HTML,Java,Windows
and save
the system will ask for Package select your package if not there then select local object
now execute the Z tcode your report will run sucessfully
Regards
Vijay hebbal -
Hi,
How to check the logs for query changes. Means which user has done what change.In properties we get the last user only.
Is there any way to check the full history of changes?
Can we change that in some transport request?
Bye,
JeetuHi,
There is no such facilities available to find, which user has done what changes in the query. you can only get the last changed 's user name of query. in transport request also you cannot change the query.
To add, check out this:
Tcode SQ01>select 'Environement' from the menu>Directories>All Queries
in the popup window, select a query and click on 'Display' button. you would get some useful information about that query
Bye -
Are Cube organized materialized view with Year to Date calculated measure eligible for Query Rewrite
Hi,
Will appreciate if someone can help me with a question regarding Cube organized MV (OLAP).
Does cube organized materialized view with calculated measures based on time series Year to date, inception to date eg.
SUM(FCT_POSITION.BASE_REALIZED_PNL) OVER (HIERARCHY DIM_CALENDAR.CALENDAR BETWEEN UNBOUNDED PRECEDING AND CURRENT MEMBER WITHIN ANCESTOR AT DIMENSION LEVEL DIM_CALENDAR."YEAR")
are eligible for query rewrites or these are considered advanced for query rewrite purposes.
I was hoping to find an example with YTD window function on physical fact dim tables with optimizer rewriting it to Cube Org. MV but not much success.
Thanks in advanceI dont think this is possible.
(My own reasoning)
Part of the reason query rewrite works for base measures only (not calc measures in olap like ytd would be) is due to the fact that the data is staged in olap but its lineage is understandable via the olap cube mappings. That dependency/source identification is lost when we build calculated measures in olap and i think its almost impossible for optimizer to understand the finer points relating to an olap calculation defined via olap calculation (olap dml or olap expression) and also match it with the equivalent calculation using relational sql expression. The difficulty may be because both the olap ytd as well as relational ytd defined via sum() over (partition by ... order by ...) have many non-standard variations of the same calculation/definition. E.g: You can choose to use or choose not to use the option relating to IGNORE NULLs within the sql analytic function. OLAP defn may use NASKIP or NASKIP2.
I tried to search for query rewrite solutions for Inventory stock based calculations (aggregation along time=last value along time) and see if olap cube with cube aggregation option set to "Last non-na hierarchical value" works as an alternative to relational calculation. My experience has been that its not possible. You can do it relationally or you can do it via olap but your application needs to be aware of each and make the appropriate backend sql/call. In such cases, you cannot make olap (aw/cubes/dimensions) appear magically behind the scenes to fulfill the query execution while appearing to work relationally.
HTH
Shankar -
How to Create PLD for Query Report
Hi,
We have designed some queries for daily inward / outward register.
For taking Print we need to export data to XL and then need to take print.
Want to set Print layout for Query based report.hello
after execting the query u ca see save button click on it write query name and query category as general then again click on save button after that just click on open then u select the query and just click on create report and u can see name of ur query and just click on user report and click ok
now go to tool .query->select query print layout--ouble click on ur saved query then ur pld will open set it with its propertites and layouts pls close the thread if ur problem is solved
thank u
ragards
jenni -
Need help with LikeFilter for querying the keyset instead of value
Hi,
I'm looking for help with the LikeFilter.
I need to query the cache to get all entries with key starting with a particular string.
I could see samples using LikeFilter for querying the values in the cache but not the keyset.
Can someone help?
E.g:
Cache Entries:
abc123 - value1
abc234 - value2
bcd123 - value3
I want to get all entries with key starting with 'abc'.
thanks,
rama.NJ, thanks for the quick reply.
I tried something similar (as below) but this code gives me 'java.lang.NoClassDefFoundError: com/tangosol/util/ValueExtractor'.
KeyExtractor extractor = new KeyExtractor("getKey");
Filter filter = new LikeFilter(extractor, id+":%",'-',false);
-rama.
Edited by: 911950 on Feb 2, 2012 1:18 PM -
Variable Screen for query view is hidden
Hi All,
I caome across an old query in BW 3.5 which is haiving some mandatory variables. There is a query view for the same query but when i am executing the query view i didn't got any variable screen and its running for some predefined value. How one can hide the variable screen for query view.
How can i achieve the same for a BI 7 query view. Please guide.
Regards:
JitendraHi Rakesh,
What you said is right but my concern is that next time when i open the query view variable screen shouldn't appear ie should run with previously stored variable values. I am working with BI 7 query view. Please guide.
Regards:
Jitendra -
Building Cascading Lists for Query Screens with ADF Business Components.
I build Cascading Lists for Query Screens with ADF Business Components. When I to select master list first working fine, but when I to select master list second returned error : JBO 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
Andrew.You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF -
Building Cascading Lists for Query with ADF Business components and JSP
I build Cascading Lists for Query Screens with ADF Business Components. When I to select master list first Ok, but when I to select master list second returned error : JBO 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
Excuse me for my English.
Andrew.You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF -
How to improve the speed for backing up files to time capsule via in hose wifi?
How to improve the speed for backing up files to time capsule via in hose wifi?
via in hose wifi?
Use a bigger hose??
House??
Need to spell this out a bit more..
But speed via 2.4ghz to the TC is restricted by Apple to max 130mbps link speed.. much slower actual transfer.. latest TC and laptops can do 450mbps on 5ghz but you need to be up close.. so place the TC near the device using it.. and force 5ghz connection by using a different name for 5ghz network. -
Ideal fan speeds for a 20" iMac
Hi,
I have a mid 2007 2 GHZ 20" Intel iMac, I recently had some unexpected shut down issues which I traced to a defective optical drive fan. I have SMC fan control loaded and it tells me that the DVD fan went off-on-off-on, I also ran an extended hardware test and that confirmed the bad fan, I replaced the fan and that was the end of my problems. However, I have been fooling with the fan speeds and now I am wondering what the ideal speeds for all three fans in my machine are? Can anyone help?
Thanks,
RollyI think you have to balance the need to run cooler against running the fans so fast you wear out the motors quickly. In general, it's probably best, at least for prolonged periods, not to run them any higher than maybe ~400 rpms above the defaults. But that's just my own guess. I don't have any statistics on what fan speeds are ideal for attaining that balance.
Then again, fans are much cheaper to replace than drives, logic boards, or power supplies.
I have maybe 5 or 6 pre-sets, including the defaults. This is one setting I often use in summer, but I may sometimes go a bit higher in very hot weather. I also have a fan running at the back, which helps keep the internal temps lower and allows me to run the internal fans slower than I would otherwise. In extremely hot weather, it's pointless to blow hot air around faster. When it's like that I sleep the computer more often.
These are the defaults on my 21.5 -
Burn speed for iPhoto...?
Greetings,
A friend of mine had a Mac Pro 2x 2.66 Dual Xeon, 2 GB, running Mac OS X 10.4.11. He encountered a problem burning a DVD-R from iPhoto '08. He got a media error with a Sony DVD-R disc. He says he hasn't had any problems with his dual Pioneer DVR-111D drives (firmware AB09) and this media.
Is there any way to change the write speed for iPhoto '08?
TIADid he try another Sony disk? It might be just one disk.
Happy Holidays
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
Maybe you are looking for
-
HT1420 How do you Deauthorize a computer if its been trashed or can no longer be turned on?
I have authorized my itunes acount on 5 different computers, but of the 5 i can only access one. I just got a new computer and want to keep my itunes account on my old one and put it on my new one but cant because of the 5 computer limite. The proble
-
What is the story with Apple not allowing downloaded movies to be played on TV's?
***?
-
Is there anyway to restrict or limit individual Mac/PC access to the Internet, both wired and wireless, through the Airport Utility using the latest generation Time Capsule?
-
How do I reset my security questions if I don't remember the answers to the current ones?
I got an iTunes gift card for Christmas and I tried to buy a song and my phone told me since I had never bought anything on that device before I had to answer my security questions... Problem is, I don't remember the answers to the questions it gave
-
Hello, I want to schedule a background job using Function module. I have searched on SDN forums for the same, n got some function modules but they are not variant based. I am providing job name, report name, date , time & variant name to the code. I