Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Dynamic table names and DBIx::Class

by GotToBTru (Prior)
on Jun 25, 2015 at 20:54 UTC ( [id://1132025]=note: print w/replies, xml ) Need Help??


in reply to Dynamic table names and DBIx::Class

Does your database even support such a thing? In my experience, partitioning is implemented in the DB such that queries are written exactly the same for partitioned and non-partitioned tables. Even if you're willing to hack DBI, access to the individual partitions is not available, or certainly discouraged.

Dum Spiro Spero
  • Comment on Re: Dynamic table names and DBIx::Class

Replies are listed 'Best First'.
Re^2: Dynamic table names and DBIx::Class
by einhverfr (Friar) on Jun 26, 2015 at 06:48 UTC

    The DB (PostgreSQL) does support it. And in fact I have moved a fair bit of the code to a module that doesn't go through DBIx::Class just to avoid this. But DBIx::Class calls still block when an unused partition is locked and that's what I am trying to avoid.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1132025]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found