Does ColdFusion maintain a single connection to datasources or does it create a seperate connect for each user?
Here is what I am trying to do:
I would like to generate a new record in a MySQL DB and retrieve the automatically generated index with a single query to prevent user collision.
So far, I have not been able to find a way to accoumplish this from the MySQL side (using SQL). It has been suggested, however, that I do an INSERT and follow that by a SELECT LAST_INSERT_ID() as this function preserves the last inserted ID for each client.
Here then is my ColdFusion concern - It will be the only actual MySQL client and that will work against the SELECT LAST_INSERT_ID()'s ability to descern between final users and re-introduce the possibility of user collision.
.
Here is what I am trying to do:
I would like to generate a new record in a MySQL DB and retrieve the automatically generated index with a single query to prevent user collision.
So far, I have not been able to find a way to accoumplish this from the MySQL side (using SQL). It has been suggested, however, that I do an INSERT and follow that by a SELECT LAST_INSERT_ID() as this function preserves the last inserted ID for each client.
Here then is my ColdFusion concern - It will be the only actual MySQL client and that will work against the SELECT LAST_INSERT_ID()'s ability to descern between final users and re-introduce the possibility of user collision.
.