Forum Moderators: open
300-500 Visitors a day,
50 records tops, will never grow more than that,
5-10 concurrent users,
90% of concurrent users will read from the DB,
10% of concurrent users will write to the DB,
What i am worried about are the concurrent users that are writing to the DB will be uploading about 5 images at a time, and that might take sometime, will that lock up the DB?
Anyone have experience with this?
If protection of the files is your concern (ie; you don't want people to be able to link to them) then this can still be accomplished. Store the files in a subdirectory ABOVE your webspace, and display the images through a script. In ASP your file would look like this:
=======
<!--METADATA TYPE="typelib"
UUID="00000205-0000-0010-8000-00AA006D2EA4"
NAME="ADODB Type Library"
-->
<%
' Your ODBC code to get the image name '
' for now we will pretend the image is stored as '
' a string called theImageFileName '
ShowImage(theImageFileName)
Function ShowImage(xImage)
'Create a stream object
Dim objStream
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Type = adTypeBinary
objStream.Open
objStream.LoadFromFile "C:\PATHTOIMAGE\" & xImage
' Uncomment the line below that applies to the file type '
' Response.ContentType = "image/gif"
' Response.ContentType = "image/jpeg"
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing
End Function
%>
========
Then you would just call the image using thisfilename.asp?whatever and let the script do the rest. Using a session variable to lock it up, no one will ever be able to link directly to your images because they're not even in the same directory as your web files.
The thing is that new JET engine can handle a lot more than 5 concurrent users as many have been mentioning here. It was somewhat true with Access 97 version but not with 2002 & especially 2003 versions.
We looked into using MySql and have rejected this plan because with Access/MSSQL we can very easily create/edit user Win front ends (integrated with MS Office through VBA) for our intranet and use the same DB for our website.
If you don't believe me read this topic from support forum of YesSoftware's - the run the whole support system on Access DB.
[forums.codecharge.com...]
Regarding cheap hosting.
We pay in average from $5 to $12 per website and pretty happy with web hosting (includes support ASP, ASP.NET, PHP, CF, MySql, ACCESS, MSSQL & more).
I went through many providers - higher price doesn't guarantee you better service