Re: Open append text files for update simultaneously
- From: "Someone" <nobody@xxxxxxx>
- Date: Wed, 12 Oct 2005 19:34:35 -0400
30 users is fine if the FIFO is not going to be too large(thousands of
records). You are not running a long query so you have nothing to worry
about. How many records you expect the FIFO to grow to(not including deleted
records)? If this is for printing, I can't imagine more that a hundred.
There are SQL quires that even run faster than the one I have given you. For
example:
sql = "SELECT MAX(Sequence) AS MaxSeq FROM tblFIFO ORDER BY Sequence"
This will result in 0 or 1 records, with a single "field" named MaxSeq.
There is a MIN function as well. Use the earlier format first because your
code would be simpler and especially if you don't have a lot of records. The
DB does not transport deleted records, and their space is reused for new
records. You don't have to worry about the order of records in the DB,
"ORDER BY" insures that you get your FIFO in the order you expect it to be.
Just make sure that you make Sequence as the primary indexed field for
performance reasons.
It's best to implement your FIFO as a class and add properties and methods
to it. For example:
Public fifo As clsFIFO
fifo.Add "Test"
fifo.Remove "Test"
Debug.Print fifo.Count
etc.
Look for "vb fifo class" to find sample code.
<chook.harel@xxxxxxxxx> wrote in message
news:1129156893.338471.126170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> The user that will add data can grow to couple of dozens...
> But beacuse like you said its a very easy action (low resource) it
> should end really quick.
>
> Do you mean that if 30 users try to log in on the same time, it'll
> stuck for some of them?
>
.
- Follow-Ups:
- Re: Open append text files for update simultaneously
- From: Robert Morley
- Re: Open append text files for update simultaneously
- References:
- Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Robert Morley
- Re: Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Robert Morley
- Re: Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: chook . harel
- Open append text files for update simultaneously
- Prev by Date: Re: Open append text files for update simultaneously
- Next by Date: Re: Open append text files for update simultaneously
- Previous by thread: Re: Open append text files for update simultaneously
- Next by thread: Re: Open append text files for update simultaneously
- Index(es):
Relevant Pages
|