• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Temporay tables -- cause problems?

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic