Comments (1)
We have similar use cases. I suggest you put this queue in a separate table and make an index on the payload field.
Then you write custom DAO with a method like select count(1) from queue_table where payload=?
.
Check whether there is already the same task in the queue before you put one.
There will be some performance degradation due to usage of the index on the payload field.
That is the reason why this behavior does not have native support.
from db-queue.
Related Issues (15)
- include priority ? HOT 10
- Unstable Oracle tests
- Could you please move the DAO implementations to a different JAR file? HOT 9
- Does the library work in clustered mode? HOT 2
- Dynamic change configuration in runtime [betweenTasksTimeout, noTaskTimeout, threadCount, etc] HOT 1
- Add plain JDBC db-queue-jdbc as an alternative to db-queue-spring
- Spring example HOT 1
- Multiple subscribers/consumers per queue HOT 2
- MSSQL support HOT 3
- QueueConsumer error handling
- Question about how a queue working HOT 2
- Max retries HOT 2
- the state of noTaskTimeout and betweenTaskTimeout HOT 1
- Dbqueue tries to catch Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db-queue.