similar to: Backwards N+1 problem

Displaying 20 results from an estimated 10000 matches similar to: "Backwards N+1 problem"

2006 Apr 29
2
Seeing performance problems with has_many :through relation
Greetings all, I am looking for some insight from some of the more experienced with has_many :through relationships as I am having a hard time reconciling the performance I am seeing. I have 2 tables that are linked together via has_many :through Table 1: urls ( there are about 7,000 records ) 2 fields, id and url Table 2: phrases ( there are about 87,000 records ) 2 fields, id and phrase (w/
2006 Dec 07
8
crash on repeated search
I have found another crash in ferret; this one just uses a regular search. It''s similar to an issue reported by Matt Schnitz a while ago, but unlike his, mine does not go away if I turn off omit_norms. It does go away if I turn on the garbage collector more often, but I''m not sure that''s a stable workaround under the circumstances. This one isn''t a
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i need to pass multiple parameters to the controller other that what is typed in the text field. <%= text_field_with_auto_complete :search, :contains, :size => 15, :frequency => 0.1, :skip_style => true -%> This is what i have as of now, but i also need to pass ":language => @default"
2006 Apr 24
9
Confusion with expressing many to many relationship
Hi folks, I am in the process of converting an existing non-rails application to rails, and am not sure what the best approach would be for specifying the relationship between the two sets of data. I''ll describe the existing table structures first. Table 1: Urls Each url has a unique id and two lists of Phrases, these are currently setup as varchars with "," delimitation -
2006 Mar 29
2
AAH lost my IVR phrases
Hello- I have a low traffic AAH setup, a few hardphones, a few softphones, 50 calls per day max. I used the AMP Digital Receptionist to make a simple voice menu: "Thank you for calling xxxx". I did this for both Normal times and After Hours times. It worked fine. I then went to the AMP Maintenance window, Config Edit, got the "phpconfig for Asterisk PBX" page, and selected
2011 Mar 10
1
phrase search highlighting
Hi Some of my users are very "conservative" as it seems :) The complained about "not finding anything useful", because the highlighted sample was wrongly colored when doing phrase search, e.g. "some word". So they refused to use web search at all and keep telephoning around. Not the found phrase was highlighted in one color, but all locations of these words within
2024 Apr 22
2
How to use Xapian Omega directly (i.e., without using `recoll` and `xapiandb`) ... Full Set Of Questions Below:
Dear senior ML members and developers of Xapian Omega, Mr. Olly has helped me cross the bump of the initial learning curve. (ref: https://lists.xapian.org/pipermail/xapian-discuss/2024-April/010034.html) How can I use Xapian Omega directly (i.e., without using `recoll` and `xapiandb`) to index a directory of text files with all strings greater than 3 characters, to create an index text file
2006 Dec 27
3
Problem with HTTPS ON CENTOS 4.4
Hi all , I set up https on CentOS 4.4. I did the below sets of commands, first removed existing files rm /etc/httpd/conf/ssl.key /server.key rm /etc/httpd/conf/ssl.crt/server.crt Next, I created key. Change to the /usr/share/ssl/certs/ directory and type in the following command: make genkey then issued below command, make testcert finaly /sbin/service httpd restart Then I got the
2008 Dec 02
1
form_for with partial using do |@f|
Is it possible to pass this FormBuilder object to a controller and then back to a partial? I have a form rendering a partial that i would like to update with a call to my controller based on user selectable parameters, but when the AJAX comes back, i get this error message because i cannot pass a form builder object between the controller and the view: "undefined method
2004 Mar 31
1
Voicemail prompts garbled
I'm having problems with the voicemail prompts. The beginning of each prompt is garbled. Prompts "edian mail" and "assword" can be recognized, but when it starts on the short phrases it is completely garbled. It is almost like the subsequent phrase starts before the current phrase finishes. I have isolated the LAN to the * box and the phones, so LAN congestion is
2007 Jun 01
5
il8n with Prototype
I''d be grateful for feedback regarding the following: /* Iterate over elements and lookup translation for language in JSON dictionary */ function translateChildren(parent, language) { var phrases = parent.getElementsByClassName(''lang''); phrases.each(function(p) { var phrase = p.readAttribute(''for''); p.innerHTML =
2009 Nov 17
4
fts squat non-english search for 2 words
Hello, It looks I encoutered a bug or misconfiguration. fts_squat search for subject and body works excellent for English mails. For non-English (in particular, Russian) it works only when query consists of 1 word. Phrases - 2 and more words - always returns nothing. Example: search for "planet" ("???????") returns results, search for "Earth" ("?????") also
2019 Nov 08
1
Suggestion for wiki page edit; "OtherSpins"
Hello, Discussion point and request for edits (either through an existing approved editor, or via myself if I am granted access) Hopefully a constructive suggestion to improve documentation, and elsewhere in the Wiki it advises me to raise such things through this mailing list. I recently noticed in Freenode/#centos somebody seeking help and being redirected to
2017 Jan 12
2
NEAR non-leaf subqueries
Olly Betts writes: > On Wed, Jan 04, 2017 at 07:29:58AM +0100, Jean-Francois Dockes wrote: > > Olly Betts writes: > > > The ticket has a patch which attempts to handle the OR case (which seems > > > to be the part you actually care about) but this suffers from issues with > > > object lifetimes which get a bit involved in the details. Since there >
2010 Mar 18
2
cannot start or stop apache due to ssl changes
Apache was working with self signed certificate. We changed the ssl.conf file to read certicates from godaddy and it it failed to restart because of incorrecrt parphrase. bash-3.2# /sbin/service httpd restart Stopping httpd: [ OK ] Starting httpd: Apache/2.2.3 mod_ssl/2.2.3 (Pass Phrase Dialog) Some of your private key files are encrypted for
2011 Jul 11
36
has_many and belongs_to association
Hi , I want to test the one below but I got the problem belongs_to :name, :class_name => "Phrase", :foreign_key => "name" in my test context "test"do should have_many :phrases end in language.rb belongs_to :name, :class_name => "Phrase", :foreign_key => "name" error is 1) Failure: test: check has_many and belongs_to
2006 Apr 12
2
Location of match?
Is it possible with Ferret to find the location of the matches in a document? For example imagine I have 100 documents and I search with the phrase "bob~0.5" and that returns 3 matching documents. How can I then find all locations in a specific document where it matched "bob~0.5". What I need is something like an array that contains the start index and length for each
2011 Sep 30
1
Slow phrase performance
I've been getting excellent performance out of xapian but when searches on phrases of common terms such as [ "north america" ] or [ "art history" ] get run it will take a very long time to come up with results. Examples: ------------------------------ [ south africa ] -- 10379 results found in ~.2 sec [ white house ] -- 17988 results found in <1 sec Quoting either of
2017 Jan 20
2
NEAR non-leaf subqueries
Olly Betts writes: > On Thu, Jan 12, 2017 at 07:53:21PM +0100, Jean-Francois Dockes wrote: > > > Recoll also supports multi-word synonyms which could potentially > > generate PHRASE subqueries inside NEAR queries, but this > > understandably already did not work with 1.2, so the multi-word > > expansions are only used when proximity is not involved (by the way,
2016 Apr 10
2
Xapian 1.3.5 snapshot performance and index size
Hi, I ran some tests with Recoll to compare Xapian 1.2.22 and 1.3.5 performance. I mostly used two relatively small document sets (realistic/typical recoll data subsets). The first set is a 2.2 GB mbox folder, with approximately 56K messages in 275 files, producing approximately 64K documents (because of attachments). The second set is a 11 GB folder with 5300 PDF files in it (random PDFS