Click here to Skip to main content
16,006,341 members
Home / Discussions / Database
   

Database

 
GeneralRe: Inserting a row and retreiving the Identity value Pin
moredip6-Jan-03 15:16
moredip6-Jan-03 15:16 
GeneralSOLUTION Re: Inserting a row and retreiving the Identity value Pin
moredip7-Jan-03 8:18
moredip7-Jan-03 8:18 
QuestionUnmanaged ADO.NET? Pin
clintsinger6-Jan-03 12:32
clintsinger6-Jan-03 12:32 
GeneralSQL Connection Problem! Pin
dyerstein6-Jan-03 5:58
dyerstein6-Jan-03 5:58 
GeneralRe: SQL Connection Problem! Pin
Richard Deeming6-Jan-03 6:15
mveRichard Deeming6-Jan-03 6:15 
GeneralRe: SQL Connection Problem! Pin
dyerstein6-Jan-03 6:25
dyerstein6-Jan-03 6:25 
GeneralRe: SQL Connection Problem! Pin
leppie6-Jan-03 6:46
leppie6-Jan-03 6:46 
GeneralTable optimization Pin
alex.barylski5-Jan-03 7:39
alex.barylski5-Jan-03 7:39 
I'm creating a login system and I am wondering about the design i have chosen because it seems to be counter productive. Basically I have 2 tables as it stands:

BTW - MEID is members id, AUTHID is auth_users id

1) auth_users

  • PKID
  • MEID
  • USER
  • PASS

2) members

  • PKID
  • AUTHID
  • EMAIL
  • FNAME
  • LNAME
  • NLOGINS
  • OPTIONS
  • LASTLOGIN
  • EXPIRES


Anyways, initially the login required me querying only the auth_users table, but that changed when features were added. Like account expiration, number of logins, last login time and date, account privileges, etc. So my question is this, should I sticj with the current design and basically run two queries at login (login permission is cached in a cookie, so once you've logged in the system won't bother you again, nor will it run the query to authenticate users)?

Should I maybe add the required fields to the auth_users table instead of keeping them in the members table so I only have to run one query at login or should I keep it as is so I have to run 2 queries at login?

Thanks

"Two wrongs don't make a right, but three lefts do!" - Alex Barylski Smile | :)
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 9:54
Matt Gullett5-Jan-03 9:54 
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 12:54
alex.barylski5-Jan-03 12:54 
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 13:11
Matt Gullett5-Jan-03 13:11 
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 14:27
alex.barylski5-Jan-03 14:27 
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 15:26
Matt Gullett5-Jan-03 15:26 
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 16:24
alex.barylski5-Jan-03 16:24 
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 16:50
Matt Gullett5-Jan-03 16:50 
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 17:19
alex.barylski5-Jan-03 17:19 
GeneralADO connection object Pin
Shamoon5-Jan-03 7:38
Shamoon5-Jan-03 7:38 
GeneralRe: ADO connection object Pin
Matt Gullett5-Jan-03 9:56
Matt Gullett5-Jan-03 9:56 
GeneralColse RecordSet Pin
Mazdak4-Jan-03 1:50
Mazdak4-Jan-03 1:50 
GeneralRe: Colse RecordSet Pin
David Wulff4-Jan-03 7:48
David Wulff4-Jan-03 7:48 
GeneralRe: Colse RecordSet Pin
Mazdak4-Jan-03 9:04
Mazdak4-Jan-03 9:04 
GeneralMS Access Count Pin
Jassim Rahma1-Jan-03 4:06
Jassim Rahma1-Jan-03 4:06 
GeneralRe: MS Access Count Pin
Roger Wright1-Jan-03 5:37
professionalRoger Wright1-Jan-03 5:37 
GeneralRe: MS Access Count Pin
David Wulff1-Jan-03 5:39
David Wulff1-Jan-03 5:39 
QuestionmySQL, what do you think? Pin
Jassim Rahma1-Jan-03 4:02
Jassim Rahma1-Jan-03 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.