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

Re: DBIx::Class 'select.... for update' confusion

by poj (Abbot)
on Dec 14, 2017 at 21:43 UTC ( [id://1205554]=note: print w/replies, xml ) Need Help??


in reply to DBIx::Class 'select.... for update' confusion

From the docs it looks like ->first resets the resultset (causing a fresh query to storage).

poj

Replies are listed 'Best First'.
Re^2: DBIx::Class 'select.... for update' confusion
by duff (Parson) on Dec 14, 2017 at 21:57 UTC

    And more importantly, you didn't specify an order by clause, so the exact order of your search results will change over time.

      Actually in this particular case the order doesn't matter... but thanks for pointing it out!
Re^2: DBIx::Class 'select.... for update' confusion
by tomgracey (Scribe) on Dec 14, 2017 at 22:02 UTC

    Ah yes, silly me. Thanks...!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found