Skip to Main Content
  • Questions
  • Advanced Queueing tables in InMemory

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Toivo.

Asked: July 24, 2020 - 10:22 am UTC

Last updated: July 27, 2020 - 2:46 am UTC

Version: 12.1.0.2

Viewed 1000+ times

You Asked

Could I load AQ tables into InMemory and what are possible downsides when doing that? We are using ExaCC rack.

and Connor said...

I can't see a downside, but I'm not entirely sure I see an upside either.

- The cost of enqueue is an insert, which would not get any faster with in-memory
- The cost of dequeue is an indexed read, which also is unlikely to see any significant jump in performance.

By all means benchmark it, but I suspect there are probably better opportunities for in-memory for you.

If the intent is to have queues just sitting in memory, ie, you don't care if you lost some messages if you (say) lost power, then check out buffered queues.

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library