Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的项目中实现连接池。我需要计算在特定时间我需要的连接数,以便我可以设置连接池的最大连接限制。谁能指导我如何检查,在特定时间使用了多少个连接。
Is there a more elegant way to do this:
widget.notes.where(:author_id => a).first.message= widget.notes.where(:author_id => a).first.message