Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 23rd, 2012, 11:10 AM
Xenith Xenith is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 12 Xenith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 47 m 52 sec
Reputation Power: 0
I have an odd question.

I have windows 7, and I made a text file read/write database for a chatbot to use. I have a small issue that is located in the red box.



I know that this is because of the sectors the NT File System uses. I just don't want a 4 MB real size to become 300 MB of useless space.

Could I increase the performance by moving this "Database" comprised of thousands (and later maybe millions) of small files by moving it over to a flash drive, on a different file system (like EXT2) or something like a solid state harddrive.

Also, any tools that are optimized to fix problems exclusively like this would be appreciated.

A secondary note, I could put the entire database into one file, but python would have to read that file each time the "database" would need to be called (which is after every input). I plan for the "database" to be very large, and I would like to keep loading times small.

Reply With Quote
  #2  
Old November 23rd, 2012, 02:46 PM
E-Oreo's Avatar
E-Oreo E-Oreo is online now
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,931 E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 49 m 26 sec
Reputation Power: 7053
The difference between the size and size on disk is due to the block size used by the file system. Virtually all file systems are block based like NTFS; most, including NTFS, allow you to choose the block size when you format the disk. So if you were to create a new partition or use a different storage device and reformat it with a smaller block size it would reduce the amount of unused space consumed by files that are small.

Placing the files on a flash drive or ssd would probably increase performance due to the decreased seek time. However, on a USB 2 connection the actual data transfer speed would be slower. For small files this matters less than it does for large files.

Quote:
Also, any tools that are optimized to fix problems exclusively like this would be appreciated.

Using an actual database engine solves this problem.
__________________
PHP FAQ
How to program a basic, secure login system using PHP

Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > I have an odd question.

Developer Shed Advertisers and Affiliates



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap