[QUOTE=bharanidharanit;6445956]
1. Does this script is good for handling very large number of records?
yes, up to 2 billion for each table
2. Also consider thousands of users are querying this database at the same time, will it executes faster?
faster than what?
actually, it depends on the query -- if you did a search for user 42 or profile 1234 or privacy 83625 it would be extremely efficient, but if you did a search for username 'todd' it would be very slow
3. Also i had used CACADE UPDATE and DELETE, when i delete the record from the parent table, the child records are deleting, but not updating.
i guess you did not test the update correctly
if you had a user, let's say 'todd', with a user id of 57, please explain
under what circumstances you would want to change todd's userid to some other number?