Class: LatoStorage::Config
- Inherits:
-
Object
- Object
- LatoStorage::Config
- Defined in:
- lib/lato_storage/config.rb
Overview
Config This class contains the default configuration of the engine.
Instance Attribute Summary collapse
-
#optimize_performances ⇒ Object
This option allows to optimize performances by skipping count queries.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
14 15 16 |
# File 'lib/lato_storage/config.rb', line 14 def initialize @optimize_performances = false end |
Instance Attribute Details
#optimize_performances ⇒ Object
This option allows to optimize performances by skipping count queries. If set to true, it will not perform count queries for collections and use other methods instead. This can significantly speed up operations but may lead to inaccuracies in counts. This is really useful for large datasets where performance is critical. Default is false.
12 13 14 |
# File 'lib/lato_storage/config.rb', line 12 def optimize_performances @optimize_performances end |