Why the db file is so big?

hello,now i use BDB as my database;
pdb->open(NULL, m_dbName, NULL, DB_QUEUE, DB_CREATE, 0);
now, there have two processes , one is FEP, the other is DP
FEP write 10000 datas to DB_QUEUE one second;
DP read 10000 datas from DB_QUEUE one second;
after the two processes run one hour, the db file become so big,
the size of db file is 1,425,796KB ,but there is no record in db file;
why the db file is so big?
the db file will become little automatic?
do you have some APIs to make the db file little?
thank you!
Edited by: 829357 on 2011-1-19 下午5:01

Hello,
Based on your description, it sounds like you didn't assign a queue extent size when you created the database.
From the BDB Reference Guide, see the section on [Selecting a Queue Extent Size|http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/rq_conf.html#am_conf_extentsize]. It sounds like the behavior that you are looking for is the ability to automatically delete queue extents once they become empty. This feature should do what you're looking for. Refer to the C API Guide ( here ) on how to define a queue extent.
If you do not want to use Queue extents for some reason, another option would be to call truncate() on the database. However, that will result in deleting any records that might be in the database as well as truncating it.
Regards,
Dave

Similar Messages

  • Why the output file is so big?

    Dear All,
             I am trying to write some data to the binary file. But the output file is very big. When I write 1M*4kB ,the file will more than 20MB. I don't know why.
            This is my vi, Please help me to find the fault,OK? Thank you very much.
            Thanks.
    Attachments:
    question1.vi ‏105 KB

    It is NOT the same vi!!! You need to familiarize yourself with dataflow, LabVIEW does NOT execute left to right, any part can execute if all inputs have data.
    In your particular case, the "file info" will execute at the same time you are building the file path. In addition, you are measuring the size of the stripped path and not of the new file. Try execution highlighting!
    To fix your code:
    You need to get the "file info" from the path AFTER you add the new filename.
    Use the error cluster to enforce proper execution order as in my example. WIre the error out of "close" to the error in of "File info". Now the "File info" must wait until all inputs have data, which can only happen after "close" has completed.
    All clear?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SizeTest.vi ‏29 KB

  • Why the different file sizes?

    Can anyone tell me why some songs are in the 20-30MB range, and most are only 3 or 4MB range? And more importantly, is there any way to shrink down the big ones? They make the CDs I burn very short indeed.

    The file size of your imported songs will depend on your import settings in iTunes. An individual file size of 20-30mb sounds like you are importing in WAV or Apple Lossless. mp3 or AAC will have the same file size when using the same bitrate. For example, the average 4 minute song imported in AAC @ 128 kbps will have a file size of 3-4mb.

  • Why the html file doesn't change with applet ?

    i am new to java , i get a problem when i am modifying a applet . i recompile it to .class file but did not change its name . and the .html file which use the applet doesn't change with it , it still shows the original style , even when i delete the .class file . it works until i changed the name of the source file and use the different .class file in html . it's troublesome if i need to modify the source file because i must change the name to get it . can you tell me why and how could i avoid this ?

    I am new also & had a similar experience.
    In my case it was aftercompiling and trying to refresh the browser to get it to display the new version of my applet. I got around this by holding Ctrl down and pressing F5 to refresh.
    Also, some of the systems at university cause exactly the problem you describe. Not sure why it should work but we overcame it by placing our files in the JDK folder on those systems & it worked properly. May be worth a try.

  • Why the swf file cannot be played by itself?

    Hi,
    After I run the source code, I opened the bin folder and
    locate the swf file that has been packaged. I double click it but
    the program will not run. But if I double click the html file that
    embed the swf file, the program will run.
    Am I doing anything wrong?

    Thanks for your help. However the code is too big to show
    here and I am not sure the client would allow me to do it. I am
    trying to think to shorten it, but it's hard to find where to start
    since I don;t know what actially could cause the problem. I thought
    about using external xml data is the reason. I then tested one app
    with external xml and one without. Both of the two swf can rrun
    standalone.
    So what is the general guideline? Thanks again.

  • Why the swf file have some lines on it?

    I have made a software simulation and published it as the swf file. And I don't know why there are some lines on the screen when I play it in IE? Just as some lines in the fax we ussually see. I have no such problem in playing it in captivate. What goes wrong? And how could I change it? Thank you.

    Hello
    Quite a lot of threads are in this forum. There could be several reasons. Did you rescale the project? What is the quality you use for the slides - default quality is Low (8-bit) you could try one of the other possibilities? Do you keep this slide quality or do you override it when publishing (you can choose 24-bit for publishing which will increase the filesize but also the quality). You could also deacitvate the compression.
    And I forgot to ask: is your version up to date, it should be 5.0.1.624.
    Lilybiri

  • Time machine says the backup file is too big but...

    Hi. My time machine back up stopped working.  It tells me that the back up file is too large.  I have a WD external 500GB Mybook.  I am trying to back up my 500GB MacBook.  "Get Info" on the MacBook indicates that there is 153GB on disk.  "Get Info" on the Mybook indicates that there is 278.8 GB available.  However, when I attempt to run backup in Time Machine I get the following message: "This backup is too large for the backup volume.  The backup requires 378.4 GB but only 278.8 GB are avalable..." 
    Why is Time Machine telling me that the backup file is 378.4GB when my MacBook shows that I only have 153GB on disk?  If I only have 153GB on disk, 278.8GB of free space in the backup volume should be sufficient for me to back up right? What am I missing here?

    Same problem here, found any solution yet guys?

  • Why the Bluetooth file transfer to other smart devices is not supported by apple? I am seeing only the lame excuse "that it only supports apple devices and not other". Knowing that only I'm posting this question to apple support people...

    APPLE never answers this question. I love apple products but this kind of useless restriction drawing itself back to the underground...they only answer what the device can do and they never answer why the device can't do that? I want to directly post this question to apple.

    Apple aren't here. You won't get a response from Apple on this user-to-user help forum.
    Although speculation on Apple policies is not permitted on this forum, it has been previously speculated frequently, that the reasons for not allowing Bluetooth file transfers are:
    1) Bluetooth is too slow for transferring multi-megabyte / gigabyte media files that iOS devices typically store. There are much faster ways of transferring files, not limited by arbitrary distances Bluetooth is.
    2) Allowing file transfers would allow illegal sharing of copyrighted music and video files. Apple has a duty to protect such files from easy sharing due to agreements with the copyright holders for whom they sell this copyrighted content in the iTunes Store.

  • Why the output file invisible from JCreator??

    i developed a program with JCreator. with the program, i intend to write something to an output file with the codes like:
    FileOutputStream fos = new FileOutputStream("output.txt");
    DataOutputStream dos = new DataOutputStream(fos);
    for(int i=0; i<10; i++){       
    String s = i+" ";           dos.writeChars(s);
    fos.close(); dos.close();
    how come when i open the output file from JCreator, i can not see anything there? yet, when i directly open the file "output.txt" from the directory storing the program source codes in the operating system, the output string "0 1 2... 9" is visible.
    quite confused! could you please illumine?

    I am not sure of my facts but I think the problem is as follows. DataOutputStream writes bytes of primitive information. You can use the method .writeUTF() which is an ASCII-compatible encoding, instead of .write().
    However textual output should be done with PrintWriter (or PrintStream in Java 1.0). JCreator is expecting ASCII or text to read.

  • Why the same file is downloaded again and again?

    The same file, from the same url is dowloaded many times to the same directory.
    Is this some kind new technology or do you compete with Youtube in dowloaded data?

    I see the same happening and the full video (?) gets loaded.<br />
    If I disable WebM (media.webm.enabled -> false) then I get the Gecko media player plugin that displays the video after a short buffering.
    *http://lac.linuxaudio.org/2013/recordings/09-02-baalman-720p.webm

  • Why is the illustrator file size this big?

    I create a new illustrator document (Illustrator CS5 - v15.1.0), in that document I create a rectangle with the rectangle tool (fill: white; stroke: black); I save the document (.ai-format; create pdf compatible file active). The file size messures 3.2 Mb.
    Why is that? It's just a simple rectangle with 4 points…

    an empty illustrator document, with PDF compatibility: 1.7Mb;
    an empty illustrator document, without PDF compatibility: 3.2Mb;
    an empty illustrator document, without PDF compatibility; embed ICC profiles not activated: 207Kb.
    So I think it might be the ICC profiles that cause these extended File sizes. However… strange that the second test is larger than the first…
    nevertheless thanks!

  • Why is this file so darn big?

    I needed to pull some video off a dvd. I used Toast and the file was 3.8 gig. When I exported the video to a DV quicktime file to open it with iMovie, it grew to a whopping 20 gig. Why is that? Should I convert the dv to a quicktime movie? Or do something else? Thanks. . . .Jim C

    When you converted the video from the DVD to DV, the process involved creates a bigger file that has more "potential" quality. i.e. the DV format is higher quality than the compressed DVD data. Unfortunately you don't get to enjoy any of that potential quality. The data that gets converted is to DV is still the compressed DVD quality.
    It's the inverse of taking a DV movie made in iMovie and creating a DVD. The massive iMovie file gets converted to much smaller, compressed and lower quality DVD data.
    Hope this helps.
    Cheers,
    David
    PowerBook G4 1.5 GHz 1GB / Power Mac G4 733 MHz   Mac OS X (10.4.3)  

  • Why the drastic file size reduction in cropped images?

    I just cropped a 9MB image a TINY amount and the resulting image was 756KB. Why? Is this normal?

    People use the word "resolution" two different ways.
    Some people use resolution to mean "pixels per inch" or ppi, and if you have a photo that is, for example, 1200x1800, you can print this photo at 300 ppi (in which case it would print as 4x6), or you can print the exact same 1200x1800 photo at 600 ppi (in which case it would print as 2x3). Same photo, same number of pixels, many different ppi values.
    Some people use resolution to mean the number of pixels in the image, in which case pixel dimensions are the same as the resolution.
    If you think of a photo in terms of pixels (height and width), then you never get confused. If you think of a photo as ppi or resolution, well ... who knows what that means ...

  • Why the open file dialog form goes to SAP background.

    I created a addon form and there is a button to open a file dialog. When I click it, this dialog went to the background of SAP. How to fix.Please

    Hi,
    Just add a class and give this source
    Public Class WindowWrapper
        Implements System.Windows.Forms.IWin32Window
        Private _hwnd As IntPtr
        Public Sub New(ByVal handle As IntPtr)
            _hwnd = handle
        End Sub
        Public ReadOnly Property Handle() As System.IntPtr Implements System.Windows.Forms.IWin32Window.Handle
            Get
                Return _hwnd
            End Get
        End Property
    End Class
    Give this source in ur add-on class
    Public ShowFolderBrowserThread As Threading.Thread
    Public Sub ShowFolderBrowser()
            Try
                Dim MyTest As New OpenFileDialog
                Dim MyProcs() As Process
                MyProcs = Process.GetProcessesByName("SAP Business One")
                If MyProcs.Length = 1 Then
                    For i As Integer = 0 To MyProcs.Length - 1
                        Dim MyWindow As New WindowWrapper(MyProcs(i).MainWindowHandle)
                        MyTest.InitialDirectory = "C:\"
                        MyTest.ShowDialog(MyWindow)
                        Dim ab As New System.IO.FileInfo(MyTest.FileName)
                        Dim db As SAPbouiCOM.DBDataSource = frm.DataSources.DBDataSources.Item("@BR_ATTACH")
                        mat1 = frm.Items.Item("ATMatrix").Specific
                        mat1.AddRow()
                        db.SetValue("U_Path", db.Offset, ab.DirectoryName)
                        db.SetValue("U_FileName", db.Offset, ab.DirectoryName + "\" + ab.Name)
                        mat1.SetLineData(1)
                    Next
                Else
                    Console.WriteLine("No SBO instances found.")
                End If
            Catch ex As Exception
            End Try
        End Sub
    Give this source in item event
    Case SAPbouiCOM.BoEventTypes.et_CLICK
    If pVal.ItemUID = "BtnBrowse" And pVal.BeforeAction = False Then
                            ShowFolderBrowserThread = New Threading.Thread(AddressOf ShowFolderBrowser)
                            If ShowFolderBrowserThread.ThreadState = Threading.ThreadState.Unstarted Then
                                ShowFolderBrowserThread.SetApartmentState(Threading.ApartmentState.STA)
                                ShowFolderBrowserThread.Start()
                                ShowFolderBrowserThread.Join()
                            Else
                                ShowFolderBrowserThread.Abort()
                            End If
    Try this......................... it worked out well for me....
    Edited by: Sridhar R Badri on Apr 23, 2008 7:47 AM
    Edited by: Sridhar R Badri on Apr 23, 2008 8:07 AM
    Edited by: Sridhar R Badri on Apr 23, 2008 8:08 AM

  • Why the RAW files appear as exec files in CS4 Bridge?

    I'm wondering how I can make my RAW files visible in CS4. I'm using the new iMac 10.8.3. Everything worked well in Tiger.

    Canon 7D and 5D III
    I believe you mean that only some files appear as 'exec', just a rounded rectangle icon with grey gradient and top left corn in green 'EXEC', the file extension shows '.CTG'. This is the file that sorts stuff on the CF card and you can safely delete this or simply ignore once the files have been imported on your computer.
    If you check the file size of this icon you will see it has only a couple of 100 bytes, depending on the amount of files you have shot on one day or session so not even 1 kb while your Raw files will probably are around 15 or 20 MB in file size

Maybe you are looking for

  • Only first page prints PDF files Adobe Reader 9 kb40558 fix Chinese version

    We have been having a problem with Acrobat and Adobe Reader 9 only print the first few pages of multi-page PDF documents. This is fixed with kb40558 for our English versions but the students and I can not find where to make the change to Font and Res

  • Career in SAP for a Mechanical Engineer ?

    Hi, I'm a Mechanical Engineer who just started with SAP having 10 months of experience in PP module. Presently I'm on working on. 1. Creation of BOM (Bill of Materials), for manufacturing of home appliance. 2. Rate Routing. 3. Production Version. 4.

  • Is it possible to have 2 hostnames for the same ip in 9iASr2 installation??

    Hi, I am going to install 9iAS (9.0.2.0.1) on solaris 5.8, the hostname in nodename and hosts files all point to a name which I don't like to use, is it possible to add another entry in these files for the 9iAS? The reason behind this is that the 9iA

  • CS6 beta slow refresh issue.

    Hi all! I'm finding the CS6 beta really rather slow in some ways. I have a picture with an original image layer, a greyscale layer on top of that and some adjustment layers on top of that. If I turn on an off the visibility of any of those upper laye

  • How to find Free Shows in Apple TV

    So, Itunes now has a Free TV Shows section, which is great. But I can't find them via Apple TV unless I already know what the name of the show is. Does anyone know if there is a way to find free TV Shows from Apple TV, or do I literally have to have