deletion of a huge number of issuance of documents

Hello

I have a job that deletes the records from 1 to 2 lakh aprx daily in a table based on a validation (where expire_date < sysdate-1).

Currently, I wrote code like this.

PROCEDURE ITEM_CLEAN
AS

BEGIN
REMOVE THE ITEM_INFO WHERE EXPIRE_TIME < SYSDATE-1;
COMMIT;

EXCEPTION
WHILE OTHERS THEN
ROLLBACK;
END ITEM_CLEAN;

This procedure, I plan to run every day at 01:00.

My question is that I want to convert in FORALL BULK COLLECT of the statements.
Can you please help me.

910575 wrote:

My question is that I want to convert in FORALL BULK COLLECT of the statements.
Can you please help me.

Loads of silly stuff being posted on forums OTN tends to make me cranky. Lack of caffeine does not help. If the mug shot is not intended to you. It's idea that bulk collect is somehow magically faster and better.

BULK COLLECTION IS SLOW! COLLECTION IN BULK TO PUSH DATA IN TABLES IS INCORRECT!

Then please. Forget this silly idea that bulk collection is a magic wand to address issues of scalability for a power of large amounts of data.

It is not the case.

It has never been.

It does not fit.

It is ALWAYS slower than SQL. ALWAYS. It MAY simply be faster. NEVER! Because it MORE work and SLOWER work than just native SQL.

The right way to address the issues of performance and scalability with processing of large amounts of data with SQL is parallel processing.

You have two basic approaches to choose.

Approach 1. Use Oracle parallel query, where Oracle intones the SQL execution more small loads (ranges of rows to process) and then run these workloads in parallel processing.

Approach 2. Custom parallel processing. This can be done using the package DBMS_PARALLEL_EXECUTE PL/SQL interface. Another custom method uses pipelining and have a parallel query your pipeline custom running in parallel.

For the workload you describe, DBMS_PARALLEL_EXECUTE is the best option. See the code example {message identifier: = 10571826}.

Tags: Database

Similar Questions

  • delete a huge number of records

    Hello

    I have a job that is a simple sql statement (DELETE FROM SESSION_MSTR WHERE EXPIRE_DATE < SYSDATE-1). the SESSION_MSTR table contains huge data of millions of records. labour should remove every day about 2 to 4 millions of data.

    There is an index on the column EXPIRE_DATE here.

    I'm always afraid that there the chance of CANCELLATION can blow and starts to roll back. the next day it becomes then more records to remove than the previous day.

    Suggest me is there a better option to manage this sittuation.


    I think to put between commits for each 1 lakh records then this CANCELLATION can be cleared, but how? If I use a for loop then takes more time...

    Thank you.

    It is the same question you asked yesterday, and the asnwers are always the same.

    DO NOT start new threads with the same question. Continue on your existing thread (and actually read the correct answers you already received)...

    Re: deletion of a huge number of issuance of documents

    This blocking thread

  • Why when I press on my delete button doI get number six instead of dele6te

    Why when I press on my delete button doI get number six instead of dele6te as you can see in the word delete 6666666

    Although some other possibilities are the most likely cause is a faulty keyboard. If you can borrow a USB keyboard free to try see if the problem still occurs. You can even do this with a laptop and I have both internal and external keyboard active.

  • Is obstacle cursor when processing a huge number of records?

    Hi all

    I use the slider in my several times stored proc. Is obstacle cursor when processing a huge number of records?
    Is there an alternative way that I can treat the records one by one?

    Thanks and greetings
    Nana Akkivalli.

    IS it your own custom proc? PLSQL has bulk collect ability you should look for large volumes, see this recent article for info;
    http://www.Oracle.com/technetwork/issue-archive/2011/11-may/o31asktom-354139.html

    OWB generates several different code of pure execute SQL based paths in bulk using PLSQL.

    See you soon
    David

  • my printer has stopped printing. The issuance of documents in Quebec and he says the first line is printing, but it is not.

    my printer has stopped printing.  The issuance of documents in Quebec and he says the first line is printing, but it is not.

    Hello

    1. what version of Windows is installed on the computer?

    2. What is the brand and model of the printer?

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Try to run the printer Troubleshooter and check that if it helps, here is the link:
    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Method 2:
    Try to run the below fixit and check if this may help:
    http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-print

    It will be useful.

  • How to get the number of occurrences per document

    Hello

    I have a table of documents (word, pdf, excel, txt) stored in the blob column. I want the SCORE to returns the number of occurrences in each document, so I use this piece of code:

    SELECT bdt.*, score_1, DBMS_CRYPTO SCORE (1). HASH(Archivo, 3) AS cod_hash

    OF crg_ctx_archivos_recibidos bdt

    WHERE CONTAINS

    (archivo,

    ' < query >

    < textquery = grammar 'SPANISH' lang = 'CONTEXT' > DEFINESCORE (paz, OCCURRENCE * 0.1) < / textquery >

    < score datatype = "INTEGER" algorithm = "COUNT" / >

    < / query > ', 1

    ) > 0

    ORDER BY PARTITION (1) DESC;

    However, I get a maximum score of 10, but I know that one of these documents have 490 games. How can I get the exact number of matches by document?

    Thanks in advance

    PD. I am using Oracle 11.2

    All the scores at the top inside to 100, so I don't think that you will be able to make the distinction between a document with 100 matches and the other with 490.

    Can you explain what you're trying to do with this?  There may be a way to use text search to find all docs with at least 100 shots, then their post-processing to order by the real number.

  • Is it possible to delete one page of a multi-page Adobe document?

    Is it possible to delete one page of a multi-page Adobe document?

    Yes Adobe Acrobat - but not with the free Adobe Reader software.

  • Why do I get a huge number of samples even with small flow and execution time

    I use the express Signal as my data acquisition software. NI9239 Daq is data acquisition system is my data acquisition equipment. Problem I have is, regardless of the data rate and the number of samples, I put, I get a lot of samples. for example I put the flow to 10 samples per second, and the number of samples to 600 (in continuous mode) I get more than 64000 samples where I should only get 600 samples total.  I tried to adjust the flow to 10 Hz and number of sasmples at 10, it gives me an error indicating that the data buffer overrun. Does anyone know a way around it?

    all responses are much appreciated.

    Hi odessy27,

    Maybe you can use the > Analog > step subset and resampling to resample the data at a lower sampling rate.

    Brad

  • Deletion of a large number of photos of Revel

    I accidentally loaded my 9000 pix in my catalog Revel, I remove issues that rise like a same plant 1500 my system package, 12 items with windows 7.  I can do a small number less than 100... Someone had a similar problem?

    Problem has been resolved by signing in Revel under a different name. This removed the library of Revel - I was then able to remove the 'local Album.

  • Is it possible to ignore the setting page number 1 on the document?

    My Professor doesn't want a page number on the first page and would like to start the page numbers on page number 2. Is there a way I can do?

    Menu > insert > Section break

    at the end of the first page, and then set Toolbar > Document > Sections do not repeat previous headers and footers and start numbering from page 1 to page 2...

    Peter

  • My computer has been deleted and a word during a disk check document...

    My computer deleted a word during a disk check document... How can I get that back without having to pay for the software to get it back? can see his old shortcut but couldn't find the actual file anywhere. Please helppp!

    Check these:

    http://www.TechSpot.com/VB/topic6988.html

    http://www.windowsbbs.com/Windows-XP/37173-recover-files-chkdsk-deleted.html

  • Number of words in document displayed in Windows Explorer does not.

    When I had Vista, I really liked the fact that Windows Explorer displays the number of words in a Word document using the «Détails» Until I realized that, without apparent reason, it displays the number of words sometimes change to one that is totally wrong - without the actual document being altered (i.e. number displayed in the Explorer of words = 2544, true account of the words document = 3655).

    The only way to solve this problem is by opening the document, undertake a different number of words, and then save the file again.

    Anyone has an idea why this could happen and, more important still, how I can stop what is happening in the future?

    It's function is useful is that I've noticed since the evolution of XP and I bought Word 2007 specifically so that I could use this feature (replacing the, apparently perfectly good and free Open Office software).

    Please respost your question in the Discussion of the Office group at: http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.word.docmanagement&lang=en&cr=US where people who specialize in Microsoft Word and its issues (and this seems to be one of them) will be more than happy to help you with your problem.

    Good luck! Lorien - MCSA/MCSE/network + / A +.

  • I accidentally deleted my documentys how can I retrieve my documents

    I accidentally deleted my documents, and they are not in my trash how can I keep this return

    You can try Recuva freeware software. You have a recent backup, where you can recover the files?

  • I need my serial number to display the document - I bought and downloaded the software online

    Hello?

    Hi a frase,

    Please visit this link: http://helpx.adobe.com/x-productkb/global/find-serial-number.html

    Kind regards

    Ajlan Huda.

  • How to insert text from the text file saved using the line number of the indesign document to point specific cursor?

    I use indesign for books of the brand. I need always insert quotes from some holy books. so I need to insert text using the verse number

    If you are looking for a way to automate where to insert the text? I really don't understand what you're trying to do.

Maybe you are looking for

  • ConfigFree on Satellite A100-413 Setup error

    Helle everyone, I just removed the notebook Windows XP MCE of mij forum, Francois, it's that I don't want any stuff-tools than thosiba on my laptop. So I installed windows XP Pro LEGAL. All the drivers are working perfect but miss me one tool of Tosh

  • Additional RAM for Satellite Pro CDX440

    I have a satellite 440 cdx pro laptop (of 1999).I want to buy RAM memory: 128 MB (to integrated 16 MB).Can you help me?Thank you, Peter M.

  • iMovie 10.1 How do I export a project in the best quality

    When I right click on a movie theatre it is not possible to "get info" to see what size it is, that is of quality. So I have to copy it to the desktop computer for "get info. In my view, there a lot less bytes project finalized before it is actually

  • Impossible to Document with HP Officejet 6310 all-in-One scanner

    Dear all, I have a HP 6310 of all-in-one desktop. My scanner was working fine until I changed my PC running on Windows & Pro. I tried various solutions proposed by the community and the last test has been with HP Print & Scan Doctor 4.3. Follow the i

  • All OfficeJet5610v in a HP: HP printer will print but not copy

    HP printer will print, but not copy.  This computer printout, will be printed over the clouds, will analyse and will fax, very well. However, he suddenly stopped making copies. The scanner bar through the glass and lights, but he won't have a copy. A