Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8987041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:41:44+00:00 2026-06-15T21:41:44+00:00

Is it possible (and/or would it be effective) to use Postgres’ hstore as a

  • 0

Is it possible (and/or would it be effective) to use Postgres’ hstore as a broker for celery?

I’m restricted (absent some very compelling reason) to using a Postgres db. I have a django app with celery tasks. Currently I am using the standard database support, but the celery docs strongly recommend against that approach for anything beyond very small task queues. I was looking into installing redis when I came across some info about the hstore feature of Postgres, and the suggestion that it provides equivalent functionality to redis.

I haven’t seen anything about using hstore specifically for celery, though, which seems odd if it really can substitute for redis. Looking through the celery backend code at
https://github.com/celery/celery/blob/master/celery/backends/base.py
it looks like the base celery KeyValueStoreBackend is a pretty simple api:

def get(self, key):
    raise NotImplementedError('Must implement the get method.')

def mget(self, keys):
    raise NotImplementedError('Does not support get_many')

def set(self, key, value):
    raise NotImplementedError('Must implement the set method.')

def delete(self, key):
    raise NotImplementedError('Must implement the delete method')

def incr(self, key):
    raise NotImplementedError('Does not implement incr')

but before I potentially pour a bunch of time into this it seemed worth asking whether there’s something I’m missing that would argue against implementing this API using hstore and using that as a celery backend.

eg. Does celery have requirements that aren’t captured by this API (eg. atomicity, scalability, reliability under load)? Would implementing this using hstore fail to provide a substantial improvement over the existing database backend? I’m fairly new to celery and never used hstore, so I’m not sure what (if anything) I’m overlooking.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:41:45+00:00Added an answer on June 15, 2026 at 9:41 pm

    hstore absolutely does not provide “equivalent functionality to redis”.

    A hstore field is not a key-value-DB in a field. Trying to use it that way will lead to pain and terrible performance. The whole record containing the hstore field must be re-written for every update. Additionally, the same challenges as apply with task queuing in a relational DB apply with hstore, meaning that you’ll get at best the performance of a single worker, you won’t get concurrency even though it might superficially look like you do.

    All hstore is is a hash-map in a database field. It’s very useful, but it’s not magic, and it won’t free you from the underlying challenges of using a RDBMS for message queuing.

    If you want a message queue, use a message queue. PGQ is one good option. Alternately check out dedicated message queue tools like ZeroMQ.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicates: How would I implement stackoverflow’s hovering dialogs? i want a small box
Possible Duplicate: How would you count occurences of a string within a string (C#)?
Would be possible to extend this kind of layout so that I can have
I would like to know if it would be possible to replicate the effect
I was wonder if this would be possible and how to do it. I
I was wondering if it would be possible to do this: $var = '$something
I am rather confused about how this would be possible with the iOS Sandbox,
Hey, I'm just wondering if it would be possible to convert videos to mp3
How would it be possible to have a HTML page play a flash animation
Possible Duplicate: What WPF books would you recommend? GUI's written using WPF seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.