COLLECTION REAL PURPOSE AND BENEFITS
Hi, Kindly anyone can give the real reason behind the existance of Collections in Oracle.
Because all things we can do through database tables/views/procedures etc.
Please help me to understand and give me some idea where use of collections become important.
Thanks in advance.
ALI wrote:
One my query is returning results very slow because it is joining four tables A,B,C and D. and each of three tables A,B and C is having around 1 million rows and D table is having less rows around 100000 rows.
So I was thinking that may be some Collection should be used to load data in the data block of the oracle form. for example, by using bulk collect and limit operators.
Any idea ?How will this make the query faster?
By putting that data into memory? That is what the SQL engine also does, using the database's buffer cache. And it does it with far more sophistication and better utilisation of memory.
Keep in mind that your collection sits in the most expensive server memory in Oracle - the PGA. This is private process memory. And unlike the buffer cache that is memory shared by all, PGA memory can only belong to a single process and be used by that process.
How do you get that data into the collection (memory)? Using I/O to read the data from table (disk).
And this is also exactly what the SQL engine will do.
So how does your approach do it better and faster than the SQL engine?
And who says that the SQL engine is slow? It is actually very powerful and quite capable. And able to apply more sophisticated data processing algorithms, then many developers can hope to code themselves.
What makes it slow? The same thing that makes any s/w slow. I/O. Reading data from disk is a slow and expensive operation.
That is why a RDBMS has features like index organised tables, partition tables, table clusters, indexes and so on - as these allow one to reduce I/O and thus increase performance.
Performance is not governed by the number of rows or size of the table. It is governed by how much I/O is needed to be used to process that data and deliver the results you want. And the following SQL clearly demonstrates that:
SQL> set timing on
SQL> select count(*) from daily_xxxx;
COUNT(*)
5298194698
Elapsed: 00:00:41.055.29 billion rows counted by that SQL statement in just over 40 seconds. Several 100 million rows counted per second.
How? Because it uses local partition bitmap indexes to determine the number of rows. Tiny indexes that means little I/O - in comparison to actually reading each and every row in the table and counting them.
Can you design and code better then what the SQL engine is capable of? Very unlikely.
Instead, learn how to make SQL part of your development arsenal and use it. It is an awesome weapon for crunching data - when wielded correctly.
You need to implement your data model correctly in the database's physical layer. You need to provide the SQL engine's CBO with the data it needs, in order for it to choose the optimal data processing method.
Similar Messages
-
I record multiple tracks of real instruments and vocals wth Garage Band. I want to share the file with a collaborator so he can add another instrument or two. I have not found a way to do this without the process mixing down the tracks. I don't want them mixed down like when I send them to Itunes. Also I can't seem to just attach a file directly to an email for sending purposes. I thought I saw a method to do this with software instruments, but how do you do it with real instruments? I've tried every process on the "export" list to try to accomplish this, without success. Thanks for any breakthrough advice on this!
As isteveus said - for large projects uploading to a server would be best.
Also I can't seem to just attach a file directly to an email for sending purposes.
But for completeness's sake , you cou can mail a project, if you ctrl-click the project and use "Compress xxx.band". This will compress the project and create a zip file, that you can mail (if it is not too large). But ask your friend for the maximal file size allowed as a mail attachment.
But whichever method you use to share your project, be sure you include all loops and instruments, if your friend does not have the same JamPacks installed. You can bundle the loops into the project by saving it as an archive. "File > Save as" and check the "Archive Project" option.
If this option should be disabled, you can force it to become active by editing your project slightly. It is only available, if the project needs saving.
Regards
Léonie -
Collection method COUNT and performance
Hi,
I use associative arrays in my application, this kind:
TYPE ADRESSETT IS TABLE OF mig.ADRESSE%ROWTYPE INDEX BY BINARY_INTEGER;
A good many times I need the count of elements in this arrays.
Of course I can use the COUNT method for this purpose.
However could it be faster to maintain a simple counter which is incremented and decremented on inserting/deleting elements
from the array?
How expensive is the COUNT method? Does the method really calculate the count every time new?
Thomasuser447000 wrote:
Hi,
I use associative arrays in my application, this kind:
TYPE ADRESSETT IS TABLE OF mig.ADRESSE%ROWTYPE INDEX BY BINARY_INTEGER;
A good many times I need the count of elements in this arrays.
Of course I can use the COUNT method for this purpose.
However could it be faster to maintain a simple counter which is incremented and decremented on inserting/deleting elements
from the array?
How expensive is the COUNT method? Does the method really calculate the count every time new?
ThomasIf you know anthing about arrays/collections/linked lists etc. (all the sort of stuff taught in the basics of programming in the first year of university), then you'll know that retrieving the count of the number of 'elements' in those things is part of what they are about. The count method doesn't have to 'calculate' the count every time, as it will be held in the collections internal structure and internally maintained every time something is added/deleted. It's not going to be an expensive operation to perform as it's just going to return the value of an internal value that is already known.
Of course, it's far easier to avoid collections altogether as they use expensive PGA memory, and instead process your data using SQL directly against the database tables. -
Real Instruments and Master Track icons dessapeared
This is when i open garage band
This happen when i start to used. The Real Istruments and Master Track icons desappeared. What is this happening and how can I fix it?THis can either mean, that the GarageBand application needs reinstalling or that you have corrupted settings and preferences files in your user account. To find out if something in your user account needs fixing, try to launch GarageBand from a different user account. You could try to log off and sign into the Guest account or create a second account for testing using the System Preferences "Users&Groups" pane.
If GarageBand works well using a different account, try HangTime's "oddball probs" fix and trash the GarageBand preferences file - move com.apple.garageband.plist from the Preferences folder in your user library to the Desktop. See the FAQ:
http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
(Let the page FULLY load. The link to your answer is at the top of your screen)
But if it even does not work from a different account, trash GarageBand and reinstall it.
Regards
Léonie -
I need to host a Shared PDF on SharePoint 2010. If it is on SharePoint can only one person comment at a time? I know documents have to be checked out when using SharePoint. I need multiple users to be able to comment in real time and see comments in real time. Is this possible?
try here:
http://www.bbb.org
File a complaint with them. Verizon will call you to fix the blunder.
But remember it is always up to the customer to insure what they are getting and what it costs. Don't trust the word of a sales person who makes their living on getting that sale. Lies, deceit or false promises will be and have been used by sales people for thousands of years.
Good Luck -
Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.
When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and last name).
I changed the computer name in Preferences/Sharing to a new name and Preferences/Accounts to just be Mike. I can right click on my account name, choose advanced, and see that everything looks right.
However, If I do a scan of my network with my iPhone using the free version of IP Scanner, it lists my computer as First-Lasts-MacBook-Pro! And it lists the user as First-Last.
So even though another Mac just sees my new computer name, and my home folder is Mike, somewhere in the system the original setup with my full name is still stored. And it's available on a network scan. So my full name might show up at a coffee shop.
Can I fully change the name without doing a complete re-install of Lion and all my apps?One thought... you said the iPhone displayed your computer's old name? I think that you must have used the iPhone with this computer before you changed the name. So no one else's iPhone should display your full name unless that iPhone had previously connected to your Mac. For example, I did this exact same change, and I use the Keynote Remote app to connect with my MacBook Pro. It would no longer link with my MacBook Pro under the old name, and I found that I had to unlink and then create a new link under the new name. So the answer to your question is, there is nothing you need to do on the Mac, but rather the phone, and no other phone will display your full name.
-
Is there a way to hide apps from the app store?
I don't want my kids to see those "free" apps that nag you to spend real money and download their other apps!
I can hide them from "purchased apps", but they still show up when browsing for new apps!
Is there a way to hide them so that my kids will never see them when looking for new apps?Not other than parental oversight. On the computer you can implement Parental Controls on a separate user account that they would use. You can then block certain websites. But you cannot do that on the iPad.
You could change your iTunes account such that they cannot access it in order to buy or download apps. -
Recently, when I create a new album (untitled), it immediately fills it immediately fills with picture either from the album above it or, if I have a Faces collection open, with the pictures from that collection. Why and how do I fix it?
When a new album is created it will fill with whatever is in the right hand window, If you're in the Events or Photos mode it will contain all photos in the library. Yes, strange behavior.
OT -
What are the classes used for bropdownListBox in BSP and purpose and how
what are the classes used for bropdownListBox in BSP and purpose and how
thank you,
Regards.
Jagrut BharatKumar ShuklaBenje001,
Right-click on the CWAI control on your form. Choose Properties. The first tab is the Channels tab. After you choose your device from the drop down box on the right, you can type in the Channels box which channel you want to use.
If you want to see a CWAI control that is already configured, all of the shipping examples will have this already done.
Also, if you have questions about any item on the CWAI (or any other NI ActiveX control) you can click the ? icon in the right corner of the properties page and then click on the item in the dialog that you need help with. This "What's this" help will describe that particular control on the dialog.
Hope that helps!
Regards,
Shannon R.
Applications Engineer
National Instruments -
I am using a Palm Pilot still for several purposes, and the desktop version can run om my Mac OS X 10.6.8, but I cannot find a version thjat runs on OS X Mavericks, which prevents me from upgrading as my PalmPilot is storage for vital info. Any solution?
Thank for for your suggestions. Unfortunately they are of little help. I am running on Snow Leopard and the PalmDesktop works fine. However, I do not want to quit my PalmTungsten unit as it is my backup for all my important access information. If it cannot run on Mavericks and no other solution is at hand, I simply will not update my OS X, but work on my Snow Leopard as it is.
I do not know how on earth I can migrate the information from my Palm into another system, and then quit the PalmPilot. If you have any intelligent solutions to this I would appreciate an input. A manual copy and paste solution is not acceptable. I may however run it on Windows via Parallel Desktop, but it is a lousy solution, and demonstrates (again) the weakness of Apple's OS and lack of compatibility. I am not impressed by the OS X performance.
Thank your for your attention. -
I am interested in purchasing Adobe's Creative Suite 6 Master Collection for Mac and Windows (Single User Educational License) FOR STUDENTS & EDUCATORS ONLY. I am purchasing this program for my son who attends George Washington High School: The College Academy in New York, New York. He is a sophomore and is interested in web design. I would like to know if he is eligible to use/activate the Creative Suite 6 Master Collection for Mac and Windows (Single User Educational License) FOR STUDENTS & EDUCATORS ONLY prior to my purchase.
Peru Bob makes a good point. I just assumed the OP understood what the System requirements | Adobe Creative Suite 6 were.
Nancy O. -
Read data in real time and save as an excel file
Hi,
I want to write a LabVIEW progarmme which able to read data in real time and save it as an excel file from Varian Vacuum muli-gauge.
It is using RS232 port.
Can anyone give me some examples or point me in the right direction?
I am a beginner of LabVIEW. Hope anyone can help me.
Thank you very much!!
JoanneThanks for your reply.
I just use MAX to verify that the rs232 port is operational.
However, there is an error (please refer to the attachment).
One possible reason is in MAX I am trying to do the default command *idn? ...but it doesn't work.
I read the vacuum multi-gauge manual but I don't know which command should I use...
I attached the manual and can you tell me which command should I use?
Or can you tell me other possible reason for this error code?
Thank you very much.
Joan
Attachments:
Varian Multi-Gauge Controller.pdf 2747 KB
error1.JPG 111 KB -
Collection : Popular DVD and Video Tools (For Mac)
Collection : Popular DVD and Video Tools (For Mac)
iPod softwares http://www.oursdownload.com/Mac-DVD-Video-iPod.html
iPhone softwares http://www.oursdownload.com/Mac-DVD-Video-iPhone.html
PSP softwares http://www.oursdownload.com/Mac-DVD-Video-PSP.html
Apple TV softwares http://www.oursdownload.com/Mac-DVD-Video-Apple-tv.html
DVD to Mobile(3GP) softwares http://www.oursdownload.com/Mac-DVD-3GP.html
DVD Video to MP4 softwares http://www.oursdownload.com/Mac-DVD-Video-MP4.html
DVD Converter http://www.oursdownload.com/Mac-DVD-Converter.html
Video Converter http://www.oursdownload.com/Mac-Video-Converter.html
DVD Copy softwares http://www.oursdownload.com/Mac-DVD-Copy.html
DVD ripper softwares http://www.oursdownload.com/Mac-DVD-Ripper.html
DVD to Blackberry http://www.oursdownload.com/Mac-DVD-Blackberry.html
DVD Creator http://www.oursdownload.com/Mac-DVD-Creator.html
DVD Studio Pack http://www.oursdownload.com/Mac-DVD-Studio.htmlI addition to running less concurrent processes or installing more RAM as Kappy mentioned.
I also see that you have less than 10% of free space left on your HDD.
Disk Information: ?
ST3500418AS disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 499.25 GB (40.6 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
Which is fairly low and forcing it to work on the slowest part of the HDDs platter. -
Differences between US and UK implementations for HR and Benefits
Need to know any information about implementing Oracle HR and basic benefits in Europe (France localization with rollup of others). I have HR, OAB implementation experinece in US. Want to understand the differences between US implementations and UK implementations. Any reference documents welcome.
Thanks
AluAlu,
Here are some starting points, but the list is only a subset of published collateral:
1. MetaLink Note 315928.1 - HRMS for France - Public Sector Updates FP K - June 2005
2. MetaLink Note 315927.1 - HRMS for France - Commercial Sector Updates FP K - June 2005
3. MetaLink Note 273558.1 - P11D Implementation and User Guide 2005-2006
4. MetaLink Note 356684.1 - UK: Payroll Statutory Deductions User Guide incorporating End of Year and Start of Year 2005-2006
5. MetaLink Note 236455.1 - Teacher''s Pension Extracts in Oracle HRMS
6. MetaLink Note 236454.1 - Occupational Sick Pay and Occupational Maternity Pay in Oracle HRMS
7. Oracle HRMS Implementation Guide B14466-01
8. Oracle HRMS Implementation Guide (UK) B15575-01
9. Oracle HRMS Implementation Guide (US) B15548-01
10. Oracle HRMS Enterprise and Workforce Management Guide (Global) B14467-01
11. Oracle HRMS Compensation and Benefits Management Guide (UK) B15579-01
Regards,
Greg -
I've a test version in use for testing purposes and want to buy it now without loosung the files.
Just buy it and enter your serial key.
Maybe you are looking for
-
Problem with Java Dates and UPDATE for SQL2000
I am having problems with the date formats for Java. I am trying to put the current date time into a SQL table, here it the code I am using: var Today = new Date() var conn = Server.CreateObject( "ADODB.Connection" ) conn.Open( "Provider=SQLOLEDB;Ser
-
Imap performance and socket errors
-bash-3.00$ imsimta version Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007) libimta.so 6.2-8.04 (built 19:28:07, Feb 28 2007) SunOS vmpm1 5.10 Generic_141414-02 sun4u sparc SUNW,Sun-Fire-V490 We're experiencing imap problems that ap
-
There's a problem with my Asha 200. Please help.
my asha 200 has totally been disorganised,the social apps nolonger works and i can nolonger access the internet using my phone,the homescreen is faulty and some apps keep freezin,i tried to update the software but it tells me no software and no softw
-
I get as far as the page where I enter my bank card details and it keeps telling me to try again later as it was unable to process it, its really annoying me!!!
-
Best Practice to Copy Table to Different Schema?
This is what I tried: 1. Create USER2 new user that uses TBS2 as default Tablespace 2. Perform exp (resides on TBS1 Tablespace) 3. Perform imp using fromuser and touser parameter to USER2 What I noticed is that the table that was imported to USER2 st