Re: Auto Increment Help...
Hi Mike; I think I understand the madness (LOL) of your methodology here. An interesting way to do things actually. I presume you go this "extra step" essentially because you're using DBF's and it allows you to avoid auto increment fields entirely?
This raises two other related question:
First: Since you must open the table in RW_exclusive mode, doesn't this still potentially impose record locking issues (at least with the QID table) within your database? Or, does AA handle simultaneous update attempts via your function as a "cue line operation?" (And thus negate the impact of simultaneous/concurrent read/write attempts in a multi-user environment.) ~Hope that made sense.
Second: Could this methodology be (and is it feasible) to implement IF you planning to migrate the application to a SQL backend?
(I'm thinking the practicality of this applies primarily/exclusively when you're working with DBF tables as opposed to a full SQL engine.)
PS: I do like your naming conventions. Provides for fast and easy readability when looking at the QID table even when opened in default browse for viewing.
(Similar thing to what I was striving for in my example.) I was manually creating a unique (and sequential) MEANINGFUL primary ID field without using AA's built-in auto-increment capabilities for similar reasons.
Originally posted by Mike Wilson
View Post
Hi Mike; I think I understand the madness (LOL) of your methodology here. An interesting way to do things actually. I presume you go this "extra step" essentially because you're using DBF's and it allows you to avoid auto increment fields entirely?
This raises two other related question:
First: Since you must open the table in RW_exclusive mode, doesn't this still potentially impose record locking issues (at least with the QID table) within your database? Or, does AA handle simultaneous update attempts via your function as a "cue line operation?" (And thus negate the impact of simultaneous/concurrent read/write attempts in a multi-user environment.) ~Hope that made sense.
Second: Could this methodology be (and is it feasible) to implement IF you planning to migrate the application to a SQL backend?
(I'm thinking the practicality of this applies primarily/exclusively when you're working with DBF tables as opposed to a full SQL engine.)
PS: I do like your naming conventions. Provides for fast and easy readability when looking at the QID table even when opened in default browse for viewing.
(Similar thing to what I was striving for in my example.) I was manually creating a unique (and sequential) MEANINGFUL primary ID field without using AA's built-in auto-increment capabilities for similar reasons.
Comment