Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Database Buffers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Database Buffers

    This TechTip article (Buffering-Friend or Foe?) should be of help to you: Mike Savino "TechTip: Buffering--Friend or Foe?" 7/16/04 7:52am I'd say changing the Force Ratio parameter of the table (physical file object) should address your problem.

  • #2
    Database Buffers

    Thanks for the info. I read the article and ran some tests and performance is definitely an issue. The article talks about buffering as if other programs don't have access to the data while the records are being buffered. But in my situation any an and all updates/writes throughout the day were accessible to other programs, yet these records were still lost after the power outage. I ran tests on the F spec with output only specified on a file and buffered records were invisible until the program ended. What am i missing? Thanks.

    Comment


    • #3
      Database Buffers

      We recently had a problem where our iSeries lost power and after being brought back up, a few files had some missing records. These files were not journaled, nor did the programs using these files for I/O were compiled with commitment control. These files were created using SQL Create command. We have a few theories as to what happened but they are just that, theories. Does anybody have an idea why we would lose records on a only a few files. These files are written to, updated with SQL. During the course of the day, any updates or writes were accessible by other programs but after the iSeries went down the data disappeared. Any input is appreciated. Let me know if there is more information needed. Thanks.

      Comment


      • #4
        Database Buffers

        The principle in the article should also apply to the case of multiple programs accessing a table. Did you try CHGPF FILE(MYLIB/MYFILE) FRCRATIO(1) on those files in issue and tested your application again ? If so and the missing data still occured, buffering should not be an issue. U mentioned using SQL to manipulate the data. What kind of program runs these SQL statements (SQL from ODBC/JDBC connection or embedded SQL in RPG/COBOL/C or ...)? If U R using embedded SQL in RPG, please read the following articles which may help : Article 1 on RPG program with embedded SQL by Gantner and Paris and Article 2 on RPG program with embedded SQL by Gantner and Paris

        Comment

        Working...
        X