Hello!
Some questions i cant find the ansvwear to on the internett or the books.
I have a table which is increasing with about 3000 rows a day. Today at 111 000 rows with about 15 different fields. A day means 8 hours (normal workhours in norway)
QUESTION 1: If i index one field that may occour repeatedly 2000 or 3000 rows (about 2-3%) times, is this an advantage considering speed?
I saw a webpage which described that index fields need to be less than 20 repeats in a table....
I also thought that 111 000 rows would be to much for access and i was planning on making an archive function in it, but it still works fine in a 20-user production facility. I mainly use ADO code with the
', CurrentProject. Connection, adOpenForwardOn ly, adLockReadOnly' locks
I am going to request a SQL server and upscale the database if needed in the future, right now i am just testing how much load i can put on the database.
I use
on a table with 700 rows wich all the users are connected to and are changing the data's on the fly (2000-3000 times a day) and this also works almost without lag
The database is about 50mb in compressed state.
QUESTION 2: Will i have som performance gain if i convert it to access 2002-2003 type?
I cant find answear for this on the internett
Sorry if my english is a little bit confusing, i am from norway :)
Some questions i cant find the ansvwear to on the internett or the books.
I have a table which is increasing with about 3000 rows a day. Today at 111 000 rows with about 15 different fields. A day means 8 hours (normal workhours in norway)
QUESTION 1: If i index one field that may occour repeatedly 2000 or 3000 rows (about 2-3%) times, is this an advantage considering speed?
I saw a webpage which described that index fields need to be less than 20 repeats in a table....
I also thought that 111 000 rows would be to much for access and i was planning on making an archive function in it, but it still works fine in a 20-user production facility. I mainly use ADO code with the
', CurrentProject. Connection, adOpenForwardOn ly, adLockReadOnly' locks
I am going to request a SQL server and upscale the database if needed in the future, right now i am just testing how much load i can put on the database.
I use
Code:
Function justere_saldo(Varenr As String, Antall_tabletter As Integer, Lokasjon As String)
Dim rst As New ADODB.Recordset
rst.Open "SELECT * from [VARER Lokasjonsantall] where Varenr=" & Varenr & " and lokasjon='" & Lokasjon & "'", CurrentProject.Connection, adOpenDynamic, adLockPessimistic
With rst
If .EOF And .BOF Then
.AddNew
End If
!Varenr = Varenr
!Lokasjon = Lokasjon
![Antall tabletter] = ![Antall tabletter] + Antall_tabletter
If ![Antall tabletter] = 0 Then
DoCmd.SetWarnings False
DoCmd.RunSQL ("DELETE * From [VARER Lokasjonsantall] where autonr=" & !Autonr)
DoCmd.SetWarnings True
GoTo slutt
End If
.Update
.Close
slutt:
End With
Set rst = Nothing
End Function
The database is about 50mb in compressed state.
QUESTION 2: Will i have som performance gain if i convert it to access 2002-2003 type?
I cant find answear for this on the internett
Sorry if my english is a little bit confusing, i am from norway :)
Comment