The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to add metadata to digital pictures from the command line iBot UNIX and Linux RSS News 0 09-19-2008 03:30 PM
Hachoir metadata 1.2 (Default branch) iBot Software Releases - RSS News 0 09-03-2008 08:30 PM
Yet Another MetaData Injector for FLV 1.4 (Default branch) iBot Software Releases - RSS News 0 05-25-2008 10:10 AM
Yet Another MetaData Injector for FLV 1.3 (Default branch) iBot Software Releases - RSS News 0 04-27-2008 05:30 PM
help, what is the difference between core dump and panic dump? aileen UNIX for Dummies Questions & Answers 1 06-11-2001 09:08 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-08-2009
otheus's Avatar
otheus otheus is online now Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
In that case, it might make sense for you to use the OS as your database. Divide your tables/rows in some manner and create a hashed directory scheme to save them. So for instance, tables with a 64-bit index that in hex looks something like: "0a924b233f2917fa" would be stored in the directory:

Code:
0a/92/4b/23/3f/29/17/fa

with the fields as files. Or the entire table can be a file (the last path element).

Either way, table management becomes a bit easier, and the OS handles the efficient management of data location and juggling. All you have to do is keep track of how many files can in be in memory at once. But again, can let the OS do that for you, since it will buffer files very efficiently.
  #2 (permalink)  
Old 07-09-2009
emitrax emitrax is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 38
To be honest, I don't understand what you mean and how I should apply your suggestion to my case (for dumping the tables).

If possible, can you point to any interesting lecture with actual examples of what you are talking about? Or at least the keywords to use with Google? :-)

Thanks again for your time and your help!

Regards,
S.
  #3 (permalink)  
Old 07-09-2009
otheus's Avatar
otheus otheus is online now Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
I spent a few minutes on Google. Maybe this will help:

On Hashed directories: Hashed directory creation for storing thousands of images on file system | drupal.org and Directory Hashing Algorithm

On Flat files and various implementations: Flat file database - Wikipedia, the free encyclopedia

Discussions on using flat-file databases for real-world applications:

Storing Data with PHP — Flat File or Database? - For Dummies

Viaweb FAQ

Do You Believe in a Flat-File Driven Content Management System?

https://salempress.com/Store/samples...nformatics.htm
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0