• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Temporay tables -- cause problems?

 
Mike London
Ranch Hand
Posts: 1190
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Are there any problems using temporary tables in a multi-user application?

I am creating a temporary table and then using it to generate other column results (that would have been very difficult in a single query).

I think I read that the temp tables are kept separate for each user.

Look forward to any and all replies.

Thanks.

- Mike
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike London:

Are there any problems using temporary tables in a multi-user application?



As per my experience, Yes it creates problem when it is not carefully planned, specially when using connection pools


temp tables are kept separate for each user.


Yes It is ,but when you say it is separate for each user this means it is separate for each connection and connection pooling mess-up every thing.

In a multi user scenario, A connection with with pooling is shared among many user of your application those are not database user but application user, therefore in reality a temporary table is not for one user and you are likely to get unexpected results.

Shailesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic