LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-12-2006, 05:31 PM   #1
azwebco
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
linux directory limits and performance issues


I'm a php/Mysql developer and I recently signed on to rework an exisitng site that was having a lot of performance issues. Some of the problem is stuff I see all the time in the form of non normalized data base tables and poorly optimized queries and code.

But... the tricky part for me is that they are creating a directory for every user on their server (they should have used mod_rewrite to simulate directories and use the db to store the relevant info by user id. This seems to be bogging the system down as there are over 9000 subdirectories in the main directory now and it is growing. I'm not really sure if this is a server question or a webserver question because truthfully I usually leave this kind of stuff to the server admins and I try and stay only at the application level as much as possible but I need to figure out how this config could be impacting the server.

to give an example:
if the server was for avon ladies you might have code like this:
http://www.avon.com/index.php?id=nancyjones or
http://www.avon.com/index.php?id=12345 and mod_rewrite would accept this
http://avon.com/12345 or
http://avon.com/nancyjones
you can have millions of id's in your db but I don't think the server is going to be very happy with even 50,000 directories.

anyone have any ideas about the limits or the issues I might expect to see? Should I be having this discussion on an apache forum?
 
Old 06-12-2006, 06:18 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Mmm gross. Depends a lot on the filesystem etc but in any case, it's the wrong way to go about it and IMO they should look at someone like yourself perhaps to fix it. The mod_rewrite suggestion is good, does the guy admining the server have a clue? If so pitch it to them and see what sort of response you get and if it's a yes, up your fee
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance issues Tylerious Slackware 11 09-22-2005 08:35 AM
Performance issues clergykid Linux - Newbie 4 12-07-2004 04:41 PM
Performance Issues with Wireless card(Linux-Wlan Drivers) QzarBaron Linux - Wireless Networking 5 09-04-2004 06:09 PM
FTP directory structure and limits? Thorkyl Linux - General 0 07-22-2004 08:35 PM
Performance issues? gurusmaran Linux - Newbie 2 03-18-2004 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration