Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4622

Runtime Efficiency of ApplicationRecord's find() method O(1)?

$
0
0

Creating a Model file in a Rails application, the resulting class implements the ApplicationRecord interface. I cannot find any documentation for ApplicationRecord; the only thing that comes up is ActiveRecord, which I assume is an earlier, deprecated version. Looking through the documentation, it is not clear to me what kind of data structure this is. Am I correct in assuming that calling find() on this always takes constant time without regard to the amount of data?


Viewing all articles
Browse latest Browse all 4622


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>