New in v12.1 is the ability to connect to Postgres. I have a Postgresql database with a few million images (stored as byte data). Each image retrieval is ~10 seconds, so I need to speed it up! But how to speed this up, I don't think MMA has any way of doing threading?
What I've tried:
These are the steps I am using to connect and do the query:
ref=DatabaseReference[URL["postgres://<connection params>"]]
schema=RelationalDatabase[ref]
store = EntityStore[schema]
EntityRegister[store]
screenshots=EntityList["screenshots"];
screenshotProperties = EntityProperties[screenshots[[1]]]
AbsoluteTiming[#->screenshots[[1]][#]&/@screenshotProperties//TableForm]


SessionSubmitlets you start asynchronous tasks on a separate kernel and use an event handling function when they finish. Perhaps that would help. $\endgroup$ByteArraycould / should've been transferred faster. We will take a note / keep this use case in mind. I can't tell off hand, without testing, whether you can do anything simple enough on the WL top level to speed this up, but as I said, we will pay attention to this case and try to address this soon. $\endgroup$"MicrosoftSQL"which supports multiple schemas in which tables reside like it is possible in"PostgreSQL"too but I am having issues whereRelationalDatabaseis unable to detect tables when they are placed in custom schemas. Are you able to check if similar issue is happening with"PostgreSQL"? If you can also help look into my question here. Any help is appreciated! $\endgroup$