Help needed in schema and flow of my DB

I am dealing with a large scale of data and the senario is that.
i am getting data from stream , i have developed an aplication called AClient (in C++) which is getting data from stream and putting that data live in my db table called live using ODBC (previously i was using Pro C but i didnot find good help on that for new versions), this data insertion is like 2000 records per min, each record is approx. 200k.
As this data is very critical so we can't afford to miss this data.Data is automatically getting commit on each insertion, so the I/O operations bar is HIGH.
Now after saving this data live, we perform some actions using oracle JOBs,
I1. One job is used to fetch approx. 200,000 from table Live, merge 5-6 records into one record after every 1 hour, and put these records in a table named COM.
I2. One jos is used to fetch approx. 200,000 from table Live other than those inserted in COM, and put them in another table INCOM.
I3. One job is to fetch all records preior to 6 hours, and put them in an archive table ARC, also delete them from Live.
Now to export this data in CSVs we are using some more Oracle JOBs.
E1. One job is to fetch last two hours data from COM table and export this data in CSV format after every 2 hours.
E2. One job is to fetch one day records from INCOM table and export this data in CSV format scheduled in night time , once for a day.
Now the problem is that i am facing performace issues, i have got a very good hardware with 32GB RAM , 1.5T harddisk and quard core processsors.
TOP issues are fetching data is too slow, and I/O operations shown in OEM preformace tab are too many.
Please guide me what should i do.
like using partition tables,
and/or use of BI tools, fetch using cubes & dimensions.
and/or use any special tunning related to memory or I/O.
and/or rescheduling the JOBs.
and/or perform analyze table to make fetch process faster.
ANY HELP.

I have worked on this system many times before.
Not the one you have written but others that could be described with the exact same words.
And each and every time the reason is that they don't scale and the performance is abysmal.
What you have done, in the design, is systematically violate every performance and scalability rule and all, seemingly, for a good reason.
The problem is that databases don't work that way.
If you can not risk losing data write a log file, just as Oracle writes its redo logs.
Then write one process that takes the raw input and generates the desired output.
I can already hear the protest about how this can not be done. I've heard those too over and over again. Yet, amazingly, there are
those of us out here that get paid to do so ... and we do so successfully.
So if you want to avoid hiring a high-priced consultant ... rethink the design.
PS: You do not need an ARC table at all. Ever. This is Oracle not a toy.

Similar Messages

  • Help needed with header and upload onto business catalyst

    Can someone help with a problem over a header please?
    I have inserted a rectangle with a jpeg image in  background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
    That's one problem.
    The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
    And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
    Can anyone help ? Thanks.

    Thanks for replying,
    How can I check the preview in other browsers before I publish a provisional site with BC?
    The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
    In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
    Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
    Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
    I’m a novice with Muse with an ambitious site !
    Thanks for your help.
    Mary Featherstone
    Envoyé depuis Courrier Windows
    De : Sanjit_Das
    Envoyé : vendredi 14 février 2014 22:15
    À : MFeatherstone
    Re: Help needed with header and upload onto business catalyst
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion 
    Hi
    Answering the questions :
    - Have you checked the preview in Muse and also in other browsers ?
    - Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
    - In design view the rectangle is set to 100% browser width ?
    With publishing :
    - Please try to rename the image file and then relink
    - If it happens with other images as well , see if all the image names includes strange characters or spaces.
    - Try again to publish
    With e-mail from BC :
    - Under preferences , please check the country selected.
    - If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Help needed on Servlets and JSTL

    Hi
    I am using tomcat 5.5 and JDK 1.5. What are the softwares I have to download for compiling servlets and creating JSTL ?. Help needed.
    Thanks
    IndyaRaja

    I tried compling servlet, but it is raising error
    that coul not find package javax.servletWhat I did not mention... you need to add those JARs in the Classpath explicitly. You will find them in %TOMCAT_HOME%\common\lib. You atleast need to add servlet-api.jar to your Classpath. :)

  • Help needed with flash and web service call

    Hi all,
    I need some help with web services and flash. I'm very new to flash, so please have that in the back of your mind when reading this :-)
    I've got a .swf file, and I would like to display a number received from a web service (using adobe flash professional cs5). Ive added the web service and provided the WSDL, but when i try to "Add Method Call", nothing happens. Why? What am I doing wrong?
    Hope someone can help

    start with the button that causes the text to be displayed.  find what it does (which may not be easy because most templates are coded by novice or intermediate level coders) and follow that trail to the text.  (note:  the text may be in a txt or xml file that's loaded.)
    to have a button release open a file, use:
    yourbtn.onRelease=function(){
    getURL("http://www.adobe.com");

  • Slice tool help needed width expands and contracts

    I recently did a header for my website and srinks and expands
    with different screen sizes I need a bit of help to undstand how
    and why this happens.
    I built it on a 19" screen fits perfectly on the page. Then
    on the 15" I'm using now its very small leaving gaps along the
    sides
    here's the problem

    No, I don't mean that your header should be all one image.
    Currently, your header is a table with a number of images
    inside it. The width of the table is "absolute." It is set to a
    fixed number of pixels (800). It won't change. What you see as
    smaller and larger on your different monitors is a result of the
    different resolution that the two monitors have.
    The forum content, on the other hand, is in tables with
    widths that are "relative." They are are a percentage of the width
    of the browser window (81%). These tables will change size
    depending on the size of the browser window. For just one perfect
    setting, everything will line up. For all other widths, you have a
    mess.
    You need your header table and your forum tables to match.
    Either your header needs to be designed differently, so that it can
    expand and contract gracefully when a browser window is a different
    size (in pixels), or you need to edit your forum so that the
    various parts are all 800 pixels wide instead of varying
    percentages.
    As for monitors, it isn't the physical size that is important
    here, it's resolution. It isn't the number of inches, it's the
    number of pixels. You can have a 21" monitor that's set to 800x600
    pixels and you can have a 17" monitor set to 1600x1200 pixels. On a
    monitor with 800x600 pixel resolution, your header will be the full
    width of the screen and the forum content will be about 650 pixels,
    indented on both sides. On a monitor that is 1600x1200 pixel
    resolution, your header will be about half of the screen width and
    your forum content will be about 1300 pixels wide.

  • Help Needed : Payroll Schema - Function P0014

    Dear Experts,
    My scenario is as follows, I have an employee whose July Payroll was processed. Thereafter there was a change in basic pay w.e.f from 1st July. Now while evaluating August payroll, retroactive accounting is triggered and both months are processed, and the difference is carried forward.
    The function P0014 along with a PCR is being used in the payroll schema, and by looking at the payroll log, I can see that in July's processing it works fine. However when it is called in August's processing, P0014 appears to be empty, and as a result the PCR is not called because there are no wagetypes selected. I want P0014 to be evaluated for August as well, so that the recurring payments are processed twice, in both July and August.
    Would really appreciate if anyone can help on this matter.
    Regards,
    Talha

    Yes the employee has an infotype record dated from 1.1.2014 onwards to 31.12.9999, so it should be valid for both months.
    I think I am missing something with its evaluation, in that the wagetypes loaded through P0014 can only be processed once.
    From my testing I have seen that function P0014 loads the wagetypes only in the first month of evaluation; i.e. if I run Retroactive further back from June; P0014 loads the wagetype while in June Payroll, and is empty for July and August.

  • Help needed with consolidating and moving itunes folder.

    I have imported songs into itunes using with the Copy Files To iTunes Folder When Adding To The Library box unchecked and moved the location of my music folder to an external hard drive. I already had a folder full of music files on this hard drive so I now have 2 folders with music files, the iTunes folder with music recently imported from cd's and the old folder. The library points to references to both of these folders but not ALL of the files in the old folder as I don't need them in iTunes.
    I now want to be able to listen to my iTunes library when not connected to the external drive. How do I do this? If I reset the location of my iTunes folder back to the macbook do I then need to consolidate, and if I do will only the files with reference pointers go into this folder? I don't want all the music files in the old folder to go onto the macbook, only the ones with reference pointers to them, plus the ones in the iTunes music folder.

    I have imported songs into itunes using with the Copy Files To iTunes Folder When Adding To The Library box unchecked and moved the location of my music folder to an external hard drive. I already had a folder full of music files on this hard drive so I now have 2 folders with music files, the iTunes folder with music recently imported from cd's and the old folder. The library points to references to both of these folders but not ALL of the files in the old folder as I don't need them in iTunes.
    I now want to be able to listen to my iTunes library when not connected to the external drive. How do I do this? If I reset the location of my iTunes folder back to the macbook do I then need to consolidate, and if I do will only the files with reference pointers go into this folder? I don't want all the music files in the old folder to go onto the macbook, only the ones with reference pointers to them, plus the ones in the iTunes music folder.

  • Help needed with footers and shrinking text

    Hi Guys
    I got a report that I want to print conditional headers and footers for. When I specify that I only want a foooter to appear on the last page, I get REP-1216 error, I checked out Metalink and followed a note on how to get around it but I'm having no joy. Can anyone help me out? I also want to make certain bits of the header and footer visible depending on a value retrieved from the report query only I get REP-1314 saying that my format trigger referencesa column at the wrong frequency. I know the value is in another frame but how do I make this value available in the margin so that the formatting will work?
    Also, I want to be able to shrink some lines of an address if it has a null value at runtime e.g
    My House
    First Address Line
    Second Address Line
    <Null>
    Post Code
    I want to format it so that it appears as:
    My House
    First Address Line
    Second Address Line
    Post Code
    I really appreciate if someone could help me out as always this is very urgent!
    Many thanks
    Ciaran

    Hi Ciaran,
    I only want a foooter to appear on the last page
    I am quoting from Note 1017067.102 on Metalink (REP-1216 when running report with field in margin) - you might have already seen this note...
    Objects in the margin region are restarted on every physical page. As a
    result, not all print condition types make sense for margin objects. Because
    objects are restarted on every page, it is as if you are always on the first
    page of the object.
    The print condition FIRST is the same as the print condition ALL.
    The print conditions LAST and ALL BUT LAST are invalid because "LAST" is never
    reached.
    The print condition ALL BUT FIRST causes the object to never appear because
    the object never goes beyond "FIRST" page.
    Thus, the only valid print conditions for the object are FIRST and ALL.
    also want to make certain bits of the header and footer visible depending on a value retrieved from the report queryYou can use conditional formatting / format trigger only for objects that are in the same group in the data model. For example, you can reference employee_id in the format trigger of employee_name if they are in the same group. In your header / footer Format Trigger, you can reference only report-level columns. So if you can make your column to appear at the report level (outside of any group), you may be able to reference it from the header / footer.
    want to be able to shrink some lines of an address if it has a null value at runtime You may be able to use Anchors. See Builder Help for more information and examples.
    Navneet.

  • Help needed with PK and FK between tables

    I need help with setting Primary keys and specially Foreign Keys between tables.
    This is star schema case, where SalesFact in located in middle.
    I have specially understanding what should be primary keys in SalesFact and setting FK relations.
    Also any table needing new Id columns because of FK requirements.
    /*FOLLOWING SCRIPS CAN BE RUN IN YOUR SQL SERVER IF YOU WISH*/
    CREATE TABLE [dbo].[SalesFact](
     [SalesId] [nvarchar](50) NULL, /* Every Id is unique and listed only once in table*/
     [ProductId] [nvarchar](8) NULL,    /* Large amount of products are sold*/
     [CustomerId] [nvarchar](50) NULL,  /* Large amount of customers exists*/
     [SalesAmount] [float] NULL,
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[Product](
     [ProductId] [nvarchar](8) NULL, /* Every Id is unique and listed only once in table*/
     [ProductName] [nvarchar](50) NULL,
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[Customer](
     [CustomerId] [nvarchar](8) NULL, /* Every Id is unique and listed only once in table*/
     [CustomerName] [nvarchar](50) NULL,
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[Sales](  /*Long and skinny table to describe sales related info*/
     [SalesId] [nvarchar](8) NULL, /* Every Id may be listed several time.*/
     [SalesProperty] [nvarchar](50) NULL, /*value can be SalesPerson,CustomerContact etc */
     [SalesName] [nvarchar](50) NULL, /*value can be John Smith etc.*/
    ) ON [PRIMARY]
    GO
    GO
    INSERT [dbo].[Customer] ([CustomerId], [CustomerName]) VALUES (N'1', N'Toyota')
    GO
    INSERT [dbo].[Customer] ([CustomerId], [CustomerName]) VALUES (N'2', N'Nissan')
    GO
    INSERT [dbo].[Customer] ([CustomerId], [CustomerName]) VALUES (N'3', N'Ferrari')
    GO
    INSERT [dbo].[Product] ([ProductId], [ProductName]) VALUES (N'11', N'Car')
    GO
    INSERT [dbo].[Product] ([ProductId], [ProductName]) VALUES (N'22', N'Phone')
    GO
    INSERT [dbo].[Product] ([ProductId], [ProductName]) VALUES (N'33', N'Milk')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'333', N'ContactPerson', N'John')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'333', N'CustomerManager', N'Bill')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'111', N'CTO', N'Ted')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'111', N'CFO', N'Hillary')
    GO
    INSERT [dbo].[SalesFact] ([SalesId], [ProductId], [CustomerId], [SalesAmount]) VALUES (N'333', N'11', N'1', 123)
    GO
    INSERT [dbo].[SalesFact] ([SalesId], [ProductId], [CustomerId], [SalesAmount]) VALUES (N'111', N'222', N'22', 456)
    GO
    Kenny_I

    CREATE TABLE [dbo].[SalesFact](
    SalesFactID INT NOT NULL PRIMARY KEY,
     [SalesId] [nvarchar](50) NULL FOREIGN KEY REFERENCES Sales(Saleid) , /* Every Id is unique and listed only once in table*/
     [ProductId] [nvarchar](8) NULL
    FOREIGN KEY REFERENCES Products(Productd),   
    /* Large amount of products are sold*/
     [CustomerId] [nvarchar](50) NULL
     FOREIGN
    KEY REFERENCES Customers(Customerid), 
    /* Large amount of customers exists*/
     [SalesAmount] [float] NULL,
    ) ON [PRIMARY]
    GO
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Help needed using content and structure functionality

    Several times now I have had users who wanted to move libraries or lists, etc. from one place within a site collection to another.
    The problem is that often, when they go into content and structure, select their source, the only action that appears is Delete, rather than also the copy or move functionality.
    Even when I connect to the farm with the farm account, I see the same issue - the copy and move actions are greyed out. The farm account is one of the site collection owners, as well as of course in the farm admin group.
    Are there certain types of things which cannot be copied or moved? One user is just trying to move a folder of files from a document library to a different location (from working to completed), while another user wants to move most of the files from an old
    project to a new project.
    I am having a tough time understanding why sometimes this works and sometimes it doesn't.

    Thank you for your answer. The user did try to use the windows explorer method, and got an error saying that the operation could not find the source.
    I appreciate the note about moving the files individually. I have suggested that.
    I also appreciate the caution about using move not copy if the versions are needed.
    In one case we have a user who is trying to consolidate 2 different sharepoint sites into 1 site.
    She has asked about moving one into the other.
    I presume that any moving that takes place will overwrite an object of the same name that exists on the other side? Or is there a prompt to the user before the overwrite takes place?
    Thank you so much for your help.

  • Help needed in encrypting and decrypting a file

    Hello,
    I just started looking into the Java Security.I need to encrypt a file using any popular alogrithm like RSA or DES and write it to disk.and again decrypt this file at a later time when needed.
    I was checking out with different ways of doing so,but found it difficult to persist the key some where.
    Could some one help me in this regard,with a tutorial or a sample program where I will be able to give cleartext file as an input and get a ciphered text file as output and vice versa?

    Probably the simplest solution is to use password-based encryption (PBE). See http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#PBEEx
    for an example.

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

  • Wireless Router Help Needed! Please and Thank You

    My warrenty has expired on my router, and Linksys is conveniently not able to help me get my router back on track.  I have had the same problem several times, and have had the steps wrote down to fix it however, I have recently moved into a new place and conveniently lost the paper.
    Usually it was a matter of just cloning my mac ID and it would work, in which I tired that with no success!  Im frustrated and I need my internet for my schooling.
    If anyone could help me it would be GREAT!  Im not able to be on the internet to check so often as to if I have a reply on here, so if you feel you can help please call me! 
    Thanks in advance!
    Stephanie
    (Mod note: Edited post for guideline compliance. Thanks!)
    Message Edited by JOHNDOE_06 on 05-21-2009 08:29 AM

    First Connect the Modem to the Linksys Router on the Internet Port and then connect your Computer to the Linksys Router on the Port no.1.
    Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...
    If your Internet Service Providor is Cable follow this link

  • Help with exp schema and related objects

    I need to export a schema from one database to another. I must also be able to export the tablespaces, roles, constraints, etc that are associated with it that aren't necessarily part of the schema. Is there an easy way to do this? I had already tried simply doing a schema exp/imp and it threw up a bunch of errors mostly grants which isn't that big of a deal but some of the tables were not created due to tablespaces being missing.

    exp system/manager file=exp.dmp log=exp.log full=y at the source database.
    imp system/manager file=exp.dmp log=imp_show.log full=y show=y - create the log file without importing the data
    edit the imp_show.log and extract the statements that are needed to re-create users,roles,alter user and grants.
    Pre-create the tablespaces using SQL*Plus in the target database.
    execute the modified imp_show.log(All DDl's)
    imp system/manager file=exp.dmp log=imp.log fromuser=A touser=B
    Re-compile all the Invalid Objects.
    HTH
    -Anantha

  • Newbie - help needed with array and dictionary objects

    Hi all
    Please see the code below. I've posted this code in another thread however the original issue was resolved and this is now a new issue I'm having although centered around the same code.
    The issue is that I'm populating an array with dictionary objects. each dictionary object has a key and it's value is another array of custom objects.
    I've found that the code runs without error and I end up with my array as I'm expecting however all of the dictionary objects are the same.
    I assume it's something to do with pointers and/or re-using the same objects but i'm new to obj-c and pointers so i am a bit lost.
    Any help again is very much appreciated.
    // Open the database connection and retrieve minimal information for all objects.
    - (void)initializeDatabase {
    NSMutableArray *authorArray = [[NSMutableArray alloc] init];
    self.authors = authorArray;
    [authorArray release];
    // The database is stored in the application bundle.
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"books.sql"];
    // Open the database. The database was prepared outside the application.
    if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) {
    // Get the primary key for all books.
    const char *sql = "SELECT id, author FROM author";
    sqlite3_stmt *statement;
    // Preparing a statement compiles the SQL query into a byte-code program in the SQLite library.
    // The third parameter is either the length of the SQL string or -1 to read up to the first null terminator.
    if (sqlite3preparev2(database, sql, -1, &statement, NULL) == SQLITE_OK) {
    // We "step" through the results - once for each row.
    // We start with Letter A...we're building an A - Z grouping
    NSString *letter = @"A";
    NSMutableArray *tempauthors = [[NSMutableArray alloc] init];
    while (sqlite3_step(statement) == SQLITE_ROW) {
    author *author = [[author alloc] init];
    author.primaryKey = sqlite3columnint(statement, 0);
    author.title = [NSString stringWithUTF8String:(char *)sqlite3columntext(statement, 0)];
    // FOLLOWING WAS LEFT OVER FROM ORIGINAL COMMENTS IN SQLBooks example....
    // We avoid the alloc-init-autorelease pattern here because we are in a tight loop and
    // autorelease is slightly more expensive than release. This design choice has nothing to do with
    // actual memory management - at the end of this block of code, all the book objects allocated
    // here will be in memory regardless of whether we use autorelease or release, because they are
    // retained by the books array.
    // if the author starts with the Letter we currently have, add it to the temp array
    if ([[author.title substringToIndex:1] compare:letter] == NSOrderedSame){
    [tempauthors addObject:author];
    } // if this is different letter, then we need to deal with that too...
    else {
    // create a dictionary to store the current tempauthors array in...
    NSDictionary *tempDictionary = [NSDictionary dictionaryWithObject:tempauthors forKey:@"authors"];
    // add the dictionary to our appDelegate-level array
    [authors addObject:tempDictionary];
    // now prepare for the next loop...
    // set the new letter...
    letter = [author.title substringToIndex:1];
    // remove all of the previous authors so we don't duplicate...
    [tempauthors removeAllObjects];
    // add the current author as this was the one that didn't match the Letter and so
    // never went into the previous array...
    [tempauthors addObject:author];
    // release ready for the next loop...
    [author release];
    // clear up the remaining authors that weren't picked up and saved in the "else" statement above...
    if (tempauthors.count > 0){
    NSDictionary *tempDictionary = [NSDictionary dictionaryWithObject:tempauthors forKey:@"authors"];
    [authors addObject:tempDictionary];
    else {
    printf("Failed preparing statement %s
    ", sqlite3_errmsg(database));
    // "Finalize" the statement - releases the resources associated with the statement.
    sqlite3_finalize(statement);
    } else {
    // Even though the open failed, call close to properly clean up resources.
    sqlite3_close(database);
    NSAssert1(0, @"Failed to open database with message '%s'.", sqlite3_errmsg(database));
    // Additional error handling, as appropriate...
    Message was edited by: dotnetter

    Ok, so I know what the issue is now...I just don't know enough to be able to resolve it!
    it's the tempAuthors objects.
    It's an NSMutableArray which is create on the line before the start of the WHILE loop.
    Having looked through the debugger, I can see that each dictionary object is created (with different codes which I assume are memory addresses) so all is well there. However, on each iteration of the loop in the middle there is an IF...ELSE... statement which in the ELSE section is clearing all objects from the tempAuthors array and beginning to repopulate it again.
    Looking at the containing dictionary objects in the debugger I can see that the tempAuthors object that each contains has the same code (again, I'm assuming this is a memory address) - so if I understand correctly, it's the same object...I assumed that when I created the dictionary using the dictionWithObject call that I would be passing in a copy of the object, but it's referencing back to the object which I then go on to change.
    Assuming the above is correct, I've tried several "stabs in the dark" at fixing it.
    I've tried relasing the tempAuthors object within the ELSE and initialising it again via an alloc...init - but this didn't work and again looking through the debugger it looks as though it was confused as to which object it was supposed to be using on the following iteration of the WHILE loop (it tried to access the released object).
    Having read a little more about memory management can someone tell me if I'm correct in saying that the above is because the tempAuthors object is declare outside the scope of the WHILE loop yet I then try to re-instantiate it within the loop (does that make sense???).
    Sorry for the long post...the more I can understand the process the less I can hopefully stop relying on others for help so much.
    I am continuing to read up on memory management etc but just not there yet.
    Regards
    Wayne

Maybe you are looking for

  • Ipod no longer syncs says I need an upgrade.

    My Ipod touch 16GB was syncing fine with ITunes. Then ITunes said upgrades available. I tried to upgrade and it wiped out everything on my Ipod. Eventually found someone who could get the basics back on it for me. But, when I go to ITunes it states "

  • How to create a link to Bar Graph......?

    Hi, Can any body tell me how to create a link to a bar graph such that on clicking, it should navigate to specified page in the same application or different application. I've written the following Region Source for creating link on Graph. Correct if

  • Error Records-File-To-Idoc

    Hi all, In processing of File-To-Idocs, if we get any error in particular record by the follwoing situations how XI will handle, 1) Wrong value in record. 2) Due to strcuture change happend to the particular record 3) value range is different than ex

  • 1.66GHz vs. 1.83GHz  - How much difference is there?

    I'm considering buying a Mac Mini for my fiancee very soon. I do have a question, however. How much real-world speed difference is there between the 1.66GHz and 1.83GHz models? I will be upgrading to 2GB RAM with aftermarket memory for her either way

  • Doing user exit for va01

    Hi,   I got a problem in the user-exit of VA01. when we  are copying data from request with quotation then the items all are copied and in edit mode. but in the item list we have to get item category in display mode how to make display mode of the ta