DatBases and Pickle Module

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Math

    #1

    DatBases and Pickle Module

    Hello,

    I wonder if someone can help me out.
    My native is Dutch, sorry for this....

    But I am writing this program, a program which uses Relational DataBase for
    saving all kinds of information in records.
    Now I saw another application which stores all kind of identical data in
    plain files, but without any kind of DBMS.
    I wonder how they did this?
    It also seems alot faster then when working with DBMS.
    Can I achieve the same in Python with say..the pickle module.
    For instance a dictionary or something else?

    Many thanks to you all
    Math

  • Larry Bates

    #2
    Re: DatBases and Pickle Module

    Math wrote:[color=blue]
    > Hello,
    >
    > I wonder if someone can help me out.
    > My native is Dutch, sorry for this....
    >
    > But I am writing this program, a program which uses Relational DataBase
    > for saving all kinds of information in records.
    > Now I saw another application which stores all kind of identical data in
    > plain files, but without any kind of DBMS.
    > I wonder how they did this?
    > It also seems alot faster then when working with DBMS.
    > Can I achieve the same in Python with say..the pickle module.
    > For instance a dictionary or something else?
    >
    > Many thanks to you all
    > Math[/color]

    Using a database is good when you want to access data based on
    indexes or if you wish to have 1-n relationships between tables.
    Plain files don't handle this very well. If all you want to do
    is store raw data and get it back, look at pickle and shelve
    modules. They are very fast.

    -Larry Bates

    Comment

    • Larry Bates

      #3
      Re: DatBases and Pickle Module

      Math wrote:[color=blue]
      > Hello,
      >
      > I wonder if someone can help me out.
      > My native is Dutch, sorry for this....
      >
      > But I am writing this program, a program which uses Relational DataBase
      > for saving all kinds of information in records.
      > Now I saw another application which stores all kind of identical data in
      > plain files, but without any kind of DBMS.
      > I wonder how they did this?
      > It also seems alot faster then when working with DBMS.
      > Can I achieve the same in Python with say..the pickle module.
      > For instance a dictionary or something else?
      >
      > Many thanks to you all
      > Math[/color]

      Using a database is good when you want to access data based on
      indexes or if you wish to have 1-n relationships between tables.
      Plain files don't handle this very well. If all you want to do
      is store raw data and get it back, look at pickle and shelve
      modules. They are very fast.

      -Larry Bates

      Comment

      Working...