General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 12th, 2003, 02:52 PM
disaster77 disaster77 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 disaster77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Am I implementing this more efficiently or not?

My employer currently uses an Access database to keep track of basically everything. Whomever originally wrote it didn't do a very good job and it's become extremely slow. I've been enlisted to rewrite it as a web-based version and I'm using PHP and MySQL. I'm currently just planning what I'm going to be doing. The main function that has caused the old database to become slow is this:

Basically what our customers do is purchase days and then they use these days. The access database keeps track of every purchase made by a customer and adds up the total days purchased and it also keeps track of every day used and they are subtracted from the total days purchased to get the total number of remaining days.

There are now well over 50,000 records and it gets extremely slow. What I want to do is to just have a single field to keep track of the number of remaining days and then when days are purchased add them to the total and when days are used, subtract them from the total. The database would also keep track of what was purchased and what was used but that information would not be used to determine how many days are unused.

I think this is more efficient but I don't know if there is something I'm not thinking of that would make this not work or become just as slow. Is there any input on maybe a better idea or something I could change or if this is the way to do it? I'd really like to know. Thanks.

Reply With Quote
  #2  
Old September 15th, 2003, 06:59 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Seems like an ok approach to me. It's good that you're keeping the other info, but using a simple count field might speed things up. Of course, moving off of Access and making sure you're indexing appropriately will go far toward speeding things up as well.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Am I implementing this more efficiently or not?


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT