• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Flat file

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,


I would like to store a audio data in a DB using streams, is it feasible to store and retrive from Falt file Database? how much will it support? what might be the drwbacks?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Frederik Ericsson:
is it feasible to store and retrive from Falt file Database?


Yes.



how much will it support?


That depends on your file system limitations.



what might be the drawbacks?


You will have to write the code to maintain the database (insert, delete, update, search, index, recover from corruption and so on). If you do run into file system limitations, you will have to code around them.
See here for an interesting exercise in creating a simple database.
Depending on your requirements, you may want to go even simpler. I implemented a "database" for user documents by creating a directory with subdirectories named for the user's ID:

Since I always know the user id I don't need a search capability. I just construct a path to the user's directory and list the files for display on the application. I can use file system commands to maintain the "database" so I don't have to implement any functionality myself.
 
Frederik Ericsson
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you JOE, let me go thru
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic