similar to: How to see all queries

Displaying 20 results from an estimated 100000 matches similar to: "How to see all queries"

2006 Apr 25
2
has_many :through
I have: class Country < ActiveRecord::Base has_many :states has_many :cities, :through => :states has_many :places, :through => :cities end What is the query RoR is using when I type: @places = @country.places Is it only one query with joins? -- Posted via http://www.ruby-forum.com/.
2006 Sep 19
8
Common performance issues
Hi, When writing a Rails app, what common tasks can likely result in performance issues? The one I''m aware of is something like: Model.find(:all).each do |elem| # do stuff end Especially when there''s lots of elements in the Model. What other ones are there? Also, does Rails do caching of queries? If I''m in a view and I do: <% if user.admin? %> ... and
2006 May 07
3
Webrick not showing sql queries any more?
Hi all, I updated rails to 1.1.2, and somehow, when I run script/server on a new rails project, I don''t see the sql queries in the console any more... It was very useful to see them live... Does any one have any idea why? Thank you very much! Nauhaie -- Posted via http://www.ruby-forum.com/.
2006 Apr 28
4
Call for patterns...
Hi group, I was wondering if anyone more experienced could help me to find a good pattern for two things: 1. How to group controllers. Example: We have an admin panel with: user_managment_controller.rb priv_managment_controller.rb widget_controller.rb User panel with: mystuff_controller.rb mytags_controller.rb profile_controller.rb And frontend with: widget_controller.rb etc... How do I group
2006 Apr 20
2
acts_as_taggable magic.... please explain
Hi, There is a line in acts_as_taggable plugin: send(acts_as_taggable_options[:from]).tags.find_or_create_by_name(name).on(self) could someone explain what is: send(xxx) and .on(self) I cannot find it rDoc -- Posted via http://www.ruby-forum.com/.
2005 Aug 15
3
BRI Hunting, using both channels on one msn
Hello All, Has anyone configured bri to answer for only one msn? In essence, when the primary is busy I want to have channel 2 ring. I am using an eicon diva server bri I know I saw it in the windows interface, but don't see it in the linux setup. Regards, Greg
2006 Aug 17
3
file_column do download from URL
Is there a simple way of forcing file_column to download file from given (ex. in form) url instead of uploading it manualy? I know: http://blog.caboo.se/articles/2006/01/09/file_column-magick-and-versions require ''open-uri'' Attachment.find_first.filename = open(url) if not working as expected... what is interesting is that: >> @a =
2006 Aug 16
5
Rails theory question, where to put a join query
The is something I wrestle with a bit when I construct joined queries.. Perhaps some experienced insight will straighten this out for me. Say you have two tables with two models, ''authors'' and ''posts''. an author has_many posts, a post has_one author. You need methods to do the following queries: find_author(postid) find_posts(authorid) And you are doing a
2006 Apr 25
4
belongs_to :through
belongs_to :through Why is that not possible? We should have: Street belongs_to :city belongs_to :country, :through => :city -- Posted via http://www.ruby-forum.com/.
2010 Jul 07
2
GURUs - How to monitor all MySQL actions on an Asterisk/FreePBX server?
Hi Guys, This is something related and yet un-related to Asterisk. I have a FreePBX/Asterisk server running and I want to trace everything that FreePBX does to MySQL. Is there a verbose CLI to MySQL that I can pull up on terminal and make configuration change to FreePBX and see it in real-time on the terminal as to what is added to which MySQL table and where? Thanks -------------- next part
2024 Apr 02
1
How to diagnose a busy LDAP server process in the Samba AD DC
1.5 seconds is pretty long, I would look into what those queries are. I would also look into repeated queries, sometimes these things are clients stuck in a loop where they don't complete because they expect some termination condition. Andrew Bartlett On Tue, 2024-04-02 at 09:25 -0300, Elias Pereira via samba wrote: > The saga continues... > I've spent a whole day with log level 5
2024 Apr 02
1
How to diagnose a busy LDAP server process in the Samba AD DC
The saga continues... I've spent a whole day with log level 5 and 7 and no error. All I have to do is return the log to the default and the error reappears. I monitored the "LDAP Query: Duration", but I didn't notice any crashes in the queries. I don't know if it's a long time, but some queries took 1.5s. Is there anything else I can do? On Mon, Mar 25, 2024 at
2024 Apr 11
1
How to diagnose a busy LDAP server process in the Samba AD DC
Hello Andrew, 1. What is the explanation for the fact that when the log level is set to 5 or 7, the NT_STATUS_IO_TIMEOUT error does not appear, but when it is at the default log level, it does? Another point I've noticed before is that when I run the command "samba-tool dbcheck --cross-ncs --reset-well-known-acls --fix --yes" (*Checked 15337 objects (0 errors)*), and in another
2024 Apr 11
1
How to diagnose a busy LDAP server process in the Samba AD DC
On Thu, 2024-04-11 at 14:21 -0300, Elias Pereira wrote: > Hello?Andrew, > > 1. What is the explanation for the fact that when the log level is > set to 5 or 7, the NT_STATUS_IO_TIMEOUT error does not appear, but > when it is at the default log level, it does? I don't have an explanation for this, sorry. ?Have you looked into the 1.5 second queries, what is sending them and
2020 Feb 28
4
Samba Bind DLZ Slow queries
Hello All, I hope you can assist me, I'm running Bind DLZ with our Samba AD DC environment Bind: BIND 9.11.4-P2-RedHat-9.11.4-9.P2.el7 (Extended Support Version) Samba: Version 4.11.6-SerNet-RedHat-9.el7 OS: Red Hat Enterprise Linux Server release 7.7 (Maipo) My DNS queries seems to be hanging intermittently, taking anything from 1sec - 15sec or even timing out. I'm been monitoring the
2019 Dec 09
2
Debuging LDAP queries on Samba AD
Hi all! I've been working with openldap for many many years and I have found very usefull to turn debuging all the way on with loglevel -1 in slapd.conf to be able to inspect in the log the queries being sent to the server. I am now using samba 4.10.8 as a DC and a general purpose LDAP server and I havent found how to debug the queries that the server receives to try and figure out what might
2013 Nov 15
1
samba4 smb.conf directive "dns recursive queries" unkown
Hi there, I build a samba 4.0.11 on a Debian Wheezy from source, joined a existing AD (samba works with internal dns) and have this smb.conf: ======= # Global parameters [global] workgroup = DOMAIN realm = DOMAIN.local netbios name = SAMBA1 server role = active directory domain controller allow dns updates = nonsecure dns recursive queries = yes
2007 Mar 13
2
index returns all results for specific queries
Hey all, I''m getting some really weird results when searching documents. It *seems* to be somehow related to the document format I''m using. I wrote a small script to replicate it: ################ #!/usr/bin/ruby require ''rubygems'' require ''ferret'' include Ferret index = Index::Index.new(:path => ''/tmp/fooindex'', :key
2013 Feb 01
1
Unexpected DNS queries from Asterisk
Keep in mind this is 1.2... I have a peer in sip.conf: [my-uk900] context = uk900 host = a.b.c.d type = friend Why am I seeing DNS queries like my.example.com and uk900.example.com? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline
2006 Jul 31
1
Pagination of Complex Queries
I''ve created a class method in my model called find_filtered. The intent is that I take various params that the user has submitted, and let the model build the query and return the AR collection, which is exactly what happens. However, now I''d like to paginate the recordset. Everything I''ve been able to find about pagination presumes that you have no pre-existing AR