Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

DataObjects' pool size is 8. It really should be configurable. #60

@rtyler

Description

@rtyler

This was originally reported against the dm-core project by @kapso, I figured I'd open up the issue here since I can't seem to find one already.

It's understandable why the pool size is always 8, but I really think that should be configurable :)

I'm experimenting with a monkey-patch cited in this StackOverflow post, which is roughly

DB_POOL_SIZE = 12

class DataObjects::Pooling::Pool
  alias :initialize_old :initialize
  def initialize(max_size, resource, args)
    initialize_old(DB_POOLSIZE, resource, args)
  end
end

I figure if this is more configurable, then dm-core can support configuring it, and help me avoid this whole monkey-patching business

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions