I am currently developing a web application, where the front-end and the application logic is entirely based in Javascript and I use PHP only for the transactions with the backend (MySQL).
Since I create complicated and interconnected objects in Javascript that will later be translated into multiple database records I need to have a unique identity for them (Id) that is generated in Javascript. I cannot overcome this and send requests to the database in order to ask for the next unique key in a table and commit it, cause as I said the object creation is rather complicated and I would have to have multiple nested AJAX requests.
Anyway if I change the Primary Key of some tables from INT to VARCHAR(32) is it going to have an impact in the performance?
Note the keys are in the form of: timestamp-zeroes_userid-zeroes_incremetedid ex. (1373222220000000001000000014)
Thanks!