Questions tagged [pooling]

a container holds ready objects for clients, to reduce initialization time of expensive buffers or resources.

Commonly refers to network or database connection pools, or byte buffer pools.

239 questions
4
votes
2 answers

How to implement L2-norm pooling in Keras?

I would like to add a global temporal pooling layer to my CNN that has three different pooling functions: mean, maximum, and L2-norm. Keras has mean and maximum pooling functions but I haven't been able to find one for L2. How could I implement this…
KayBay
  • 719
  • 1
  • 7
  • 10
4
votes
1 answer

Predicting with plm function in R

I was wondering if it is possible to predict with the plm function from the plm package in R for a new dataset of predicting variables. I have create a model object using: model <- plm(formula, data, index, model = 'pooling') Now I'm hoping to…
Michael
  • 1,281
  • 1
  • 17
  • 32
4
votes
0 answers

In LuaSql, how to use a connection pooling?

I've been working on Lua / Torch and I've been using LuaSql to connect to a PostgreSQL database. I've reached the maximum number of connections several times, and now I would like to use some sort of connection pooling for my database management…
DavideChicco.it
  • 3,318
  • 13
  • 56
  • 84
4
votes
4 answers

Oracle OLEDB Connection Pooling and Invalid Connections

We are using ADO to access Oracle 10g release 2, Oledb provider for Oracle 10g. We are facing some issue with the connection pooling. The database reside on the remote machine and connection pooling is occuring as it should. But if the remote…
Mubashir Khan
  • 1,464
  • 1
  • 12
  • 17
4
votes
2 answers

make mail mark as unread after polling - Apache Camel

Am using apache camel, With Polling consumer, when poll my mail is mark as read. options : delete=false&peek=false&unseen=true After polling , when i am processing the attachment, if any error occurs , i want to make the mail as "unread". So that i…
Benoy Prakash
  • 436
  • 5
  • 17
4
votes
3 answers

How to limit number of ODBC connections from a .Net web application?

I have created a .Net 3.5 web service in C# that communicates to a Progress OpenEdge database through ODBC. This database has been set up to only allow 10 simultaneous connections on the user account the web service is using (third party…
wxwxw
  • 43
  • 3
4
votes
1 answer

Polling vs long-polling

What are the differences between polling and long polling? What are the advantages and disadvantages? Is Ajax considered as long-polling?
Sam Jelveh
  • 237
  • 1
  • 3
  • 17
3
votes
1 answer

HTTP streaming on Heroku (upload lots of data)

I have one app hosted on Heroku and this app saving lots of data information to database (it takes about 70 seconds). Heroku after 30 seconds period of every request display the error page H12 about timeout, how could I display some info-message…
user984621
  • 46,344
  • 73
  • 224
  • 412
3
votes
0 answers

Creating copies of an object for Phaser 3 pools

I am currently making a Tower Defense game in Phaser 3 and I need some help refactoring my code to implement a generic pool. Now I have several diferent pools that I fill manually. for (let i = 0; i < 10; i++) { let basicEnem = new Enemy(this,…
AverZeta
  • 41
  • 1
3
votes
1 answer

Spring ObjectPooling & thread blocking

I have a Spring CommonsPoolTargetSource defined for a bean. I'm trying to understand how pooling works, and when an object is returned the the pool. Specifically, if I have a worker, which takes a pooled object and invokes two methods on it, as…
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
3
votes
6 answers

Managing multiple-processes: What are the common strategies?

While multithreading is faster in some cases, sometimes we just want to spawn multiple worker processes to do work. This has the benefits of not crashing the main app if one of the worker crashes, and that the user doesn't need to worry a lot about…
kizzx2
  • 18,775
  • 14
  • 76
  • 83
3
votes
0 answers

PoolingHttpClientConnectionManager getting shutdown

I am trying to use PoolingHttpClientConnectionManager in my application to invoke / call some web-services. The particular connection manager is configured as a spring bean like below:
Anand03
  • 213
  • 2
  • 6
  • 17
3
votes
1 answer

Average pooling with Theano

I am trying to implement another pooling function for neural network with Theano, expect of already existing maxpool, for example average pool. Using to this source, where average pooling is already implemented, my code looks like: Random…
grin
  • 99
  • 1
  • 8
3
votes
1 answer

AutoCommit did not work with jOOQ 2.6.1 and Tomcat pooling

I use jOOQ 2.6.1 and the pooling from Tomcat (docs) and I have set autocommit to true. PoolProperties p = new PoolProperties(); p.setDefaultAutoCommit(true); p.setJdbcInterceptors("org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;" + …
user2115378
  • 931
  • 3
  • 14
  • 22
3
votes
4 answers

Java Servlet Pooling

Servlets 101, under Tomcat 6: Could someone kindly point me to a good explanation of the best way to eg. create a Collection of expensive Foo objects at servlet startup time and stash them somewhere where I can access them while processing each…
Greg
  • 59
  • 2
  • 4
1 2
3
15 16