473,396 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Dabase Design

I need some help with my website. I will need to write a boolean
value every 5 minutes for 100 users. that is about 28,000 writes per
day. This data must be kept for at least a month. Can I simply write
this to a db as a new record each time? Should I write once per hour
with 12 columns? Or should I try to find a way to use some sort of
compress the data... such as some sort of algorithm?

This just seems like a lot of activity for an access db. Please let
me know what you think.

Thanks,
Mark

Mar 9 '07 #1
5 1271
trading_jacks wrote:
I need some help with my website. I will need to write a boolean
value every 5 minutes for 100 users. that is about 28,000 writes per
day.
One write every 3 sec on average. Cake.
This data must be kept for at least a month.
About 1M records per month. Cake, with frosting.
Can I simply write
this to a db as a new record each time?
Yes. Add whipped cream, and a cherry yet.
Should I write once per hour
with 12 columns?
Not just no, but heck no. Don't stratify your data across columns.
Columns are expensive. Rows are cheap. Non-score. Deduct cherry. Deduct
whipped cream.
Or should I try to find a way to use some sort of
compress the data... such as some sort of algorithm?
Nah, one table row per event. KISS (Keep It Simple Silly). You can store
bajillions* of records like this in a single Access DB table.

*untested; YMMV.
This just seems like a lot of activity for an access db. Please let
me know what you think.
Barring massive spikes at peak usage times, this should not be a problem
as long as you have a fast network. You could stress test this with a
handful of autobot routines to rapidly stuff a table over the network if
you are not sure.
Thanks,
Mark
HTH

--
Smartin
Mar 9 '07 #2
"trading_jacks" <MA**********@gmail.comwrote in
news:11*********************@v33g2000cwv.googlegro ups.com:
I need some help with my website. I will need to write a boolean
value every 5 minutes for 100 users. that is about 28,000 writes per
day.
Really?

This data must be kept for at least a month. Can I simply write
this to a db as a new record each time? Should I write once per hour
with 12 columns? Or should I try to find a way to use some sort of
compress the data... such as some sort of algorithm?
If you are accomplished enough to use bit operations you could write an
16 character string, or four doubles or whatever and write just once.
>
This just seems like a lot of activity for an access db. Please let
me know what you think.
It's unlikely that you have persisitent connections to your DB if you are
operating from a website, so each write can connect, do its work and
disconntect. A connect, write, disconnect should actually be connected to
the JET DB for a very small fraction of a second. One hundred of these
every five minutes should be trivial.
Of course, if you can do the 100 inserts or updates on the same connect,
you will very, very slightly increase the time of the write, but have
only one every five minutes.

Here in CDMA we often think of persistent connections. Access is cursed
with the notion of persistent connections; I expect because some genius
in the previous century decided it would be agood idea to mix procedures
and data in the same file. This underlies many unique Access problems.
But we don't have to use persistent connections, and, TTBOMK, on a
website, we don't. And when we don't use perisistent connections we use
the JET db without the Access millstone around its neck; and then it is
really JET-like.

Thanks,
Mark


--
Mar 9 '07 #3
If you are accomplished enough to use bit operations you could write an
16 character string, or four doubles or whatever and write just once.

that is exactly what I had in mind. But it seems that Access can
handle the load of 1M records, so I am thinking it will be much
simpler to maintain if I just use a new record each time.

I haven't started coding this part yet, so I am not 100% sure, but I
should be able to write all 100 in one connection. But again, you
guys don't seem to think it would greatly impact performance either
way. And yes it is not a persistent connection, and yes it uses jet.

thanks for your help.
Mar 9 '07 #4
If you're just keeping track of a boolean value across time, why not
only record the changes in value? I agree with the other posters that
it isn't a troublesome amount of activity, but I don't see any value
in recording all those data points if you can record just the changes
and not lose any information.

On Mar 9, 11:36 am, "trading_jacks" <MARKFERGA...@gmail.comwrote:
If you are accomplished enough to use bit operations you could write an
16 character string, or four doubles or whatever and write just once.

that is exactly what I had in mind. But it seems that Access can
handle the load of 1M records, so I am thinking it will be much
simpler to maintain if I just use a new record each time.

I haven't started coding this part yet, so I am not 100% sure, but I
should be able to write all 100 in one connection. But again, you
guys don't seem to think it would greatly impact performance either
way. And yes it is not a persistent connection, and yes it uses jet.

thanks for your help.

Mar 9 '07 #5
On Mar 9, 11:54 am, "AllenWhite" <comme...@allenwhite.netwrote:
If you're just keeping track of a boolean value across time, why not
only record the changes in value?
so do something like this:

autoid - userid - trackerid - status - date - time
1 - tjacks - 101 - yes - 1/1/07 - 12:55
2 - tjacks - 101 - no - 2/2/07 - 19:20
3 - tjacks - 101 - yes - 2/2/07 - 22:40
then use some code to determine when it is yes and for how long (and
no).

that is not a bad idea. The logic should be fairly easy as well.

thanks!

Mar 9 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: grz02 | last post by:
Hi, Im an experienced database+software designer and developer, but, unfortunately, anything to do with web-programming and web-systems designs is still a pretty new area to me... (been working...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
0
by: Edward Diener | last post by:
In Borland's VCL it was possible to divide a component into design time and run time DLLs. The design time DLL would only be necessary when the programmer was setting a component's properties or...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
10
by: vital | last post by:
Hi, I am designing the middle tier of a project. It has 6 classes and microsoft application data access block. The six classes are DBServices, Logger, ProjectServices ... etc. and all these...
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.