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

Breadcrumb

Dev Live Dev Intro

We are celebrating Developers at AskTOM. We welcome Developers of all levels of experience to join us at our FREE Developer Live events coming in August and September. Just click on the left to register today! If you are brand new to Database Technology, then we also have got you covered. Just click on the right for your comprehensive FREE training program to kick start your Oracle Database Development journey!

Question and Answer

Connor McDonald

Thanks for the question, Toivo.

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

Answered by: Connor McDonald - Last updated: July 27, 2020 - 2:46 am UTC

Category: Database Administration - Version: 12.1.0.2

Viewed 100+ times

You Asked

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

and we 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.

More to Explore

PL/SQL

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