我的网页上有一个按钮,用于将我的用户索引从params重定向回用户索引.我的问题是,当我通过按钮导航回users_path时,我会收到一条消息表单"你已经登录了".即使我没有尝试登录并且只是导航回同一页面但删除了参数,这种情况也会发生.
有问题的按钮看起来像,
<%= button_to "All Users", users_path, class: "button expand" %>
Run Code Online (Sandbox Code Playgroud)
我在我的所有文件中搜索了"您已登录"的实例.唯一的参考是在devise.en.yml中所说的 already_authenticated: "You are already signed in."
在Amazon Redshift中,使用Diststyle ALL的桌子应该有多小?
它在这里说:http
://dwbitechguru.blogspot.com/2014/11/performance-tuning-in-amazon-redshift.html对于vey小表,redshift应该使用diststyle ALL而不是EVEN或KEY.小有多小?如果我要在查询的where子句中指定行号:select relname, reldiststyle from pg_class我应该指定多少行?