Displaying 20 results from an estimated 200 matches similar to: "CachedModel anyone?????"
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
I started using robotcoop''s CachedModel class in my project but have encountered problems when using it with the acts_as_ferret plugin. It seems it doesn''t index everything in my STI model, also if I do a search from my base STI class I get a result count but no results. If I run the same search from one of the children STI models I get the appropriate results (if the information
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
The new version of cached_model features bug fixes and tests!
Bugs fixed:
Updating a model no longer stores associations into the cache. This
could cause strange, hard-to-debug bugs when an invalid set of
assocations was retrieved along with a cached model.
Reloading a model refreshes the cache.
When CachedModel::find can''t understand query params and a single
result is
2006 Jan 17
10
ActiveRecord + memcache = cached_model
Courtesy of The Robot Co-op.
$ yes | sudo gem install cached_model
Or, you can download cached_model and memcache-client (our zippy-fast
memcache library, required) from:
http://rubyforge.org/frs/?group_id=1266
I don''t have the README posted for making cached_model work online
yet, so here it is:
= CachedModel
Rubyforge Project:
http://rubyforge.org/projects/rctools/
== About
2006 Feb 12
3
memcache-client/cached_model help
Hi -
Just downloaded and installed the memcache-client and cached_model
gems and am trying to test it out on a development setup. I added
this to my environment/development.rb
CACHE = MemCache.new :c_threshold => 10_000,
:compression => true,
:debug => true,
:namespace => ''eztrip'',
2013 Nov 28
2
Dovecot's brittle configuration syntax
Hi there,
Whilst trying to come up with a minimal configuration for Dovecot:
http://dabase.com/blog/Minimal_Dovecot/
I noticed the configuration syntax is a bit admin unfriendly. It's easy
to get an infamous Error code 89.
Is there any back story to the grammar or language this configuration is
in?
Kind regards,
2006 Mar 01
4
cached_model and memcache-client slowness
Hi there,
I''ve got a Rails app that''s a little unusual in that it maintains a
database representation of a filesystem (for an image gallery). Thus, if
the filesystem is essentially ''out of date'' then the controller''s list
action will end up invoking a model update (which involves a filesystem
scan).
I''m using sqlite3 as this app will be
2006 Mar 28
12
cached-model broken with Rails 1.1
It looks like cached-model is broken again under rails 1.1. Can anyone
confirm? Note that the exception below indicates it''s trying to treat
CachedModel as the class name of the model, rather than using the proper
class name (which is Entry in this case, and the table called entries).
This is a model using Single Table Inheritance and acts_as_tree, and
worked just fine under 1.0 and
2007 Aug 14
1
What's the good way to cache reference data?
I''m looking at an application that has 30+ lookup tables. By that I
mean your typical (id, description, created_on) affairs that contain
locations, zip codes, contract types and what not. Things that rarely
change, and are maintained by administrators.
It''s well known that when you have many lookup tables in the schema,
eager loading is not good enough anymore, and you need to
2006 Jan 30
1
find_by_sql and memcached
Is a find_by_sql query cached with memcached and cached_model
(http://dev.robotcoop.com/Libraries/)? Looks like the answer is no. Is
there a reason for this? I have a lot of very complicated querys with a
lot of unions, subquerys and joins that would greatly benefit from the
cache.
Going through the code I can see that the find_by_sql method is changed
in cached_model.rb, but it does not call
2006 May 02
6
Performance suggestions or best practices ideas?
Any suggestions on applications that involve alot of calcualtions on a
fairly large data set?
My app uses a set of raw data ~5k, applies some default/override rules
on the raw data and does some calculations on the data in combination
with a list of assumptions. A ranked list along with detailed metrics
is generated. The end user can manipulate some of the rules and
assumptions to generate
2004 Feb 16
2
debian unstable : mutt polling imap mailboxes
Package: dovecot
Version: 0.99.10.4-2
I am accessing my IMAP folder on my ~/Maildir using mutt via Dovecot and
I have this problem whereby mutt incorrectly reports I have new mail in a
"mailboxes" polled mailbox.
This happens all the time when I press the key bound to change mailbox.
I use courier IMAP at school, and I have not experienced this problem. A
bug with dovecot or mutt?
2011 Jan 17
2
DatabaseCorruptError
Hi there,
My web app uses Xapian via the PHP bindings. I'm getting this error
thrown occasionally when atempting to instantiate a XapianDatabase
object for searching.
DatabaseCorruptError: Expected block 107 to be level 1, not 0
Here's the line that invokes it:
$database = new XapianDatabase(PROJROOT.'/data/xapian/posts');
And my version is xapian-core 1.2.3 with matchspy.
2013 Dec 14
1
imap2json
Hi there,
I've started work on a side project that I've been long wanting to do;
better HTML archives of email.
https://github.com/kaihendry/imap2json
I'm just designing the JSON schema atm, and I thought it would be good
to get your feedback (Esp Timo) before I make a horrible mistake.
https://github.com/kaihendry/imap2json/blob/master/JSON-design.mdwn
Is it a good idea to base
2016 May 02
0
Samba configuration for a home share
Hi there,
Like hopefully many of you guys, I'm struggling to maintain my
family's media & the video footage I'm taking of late. Especially
since everything is expected to be accessible from Archlinux, Windows
& MacOSX.
I think after spending the odd hour here and there... finally I have
good configuration I'd like to share:
2013 Apr 18
2
Styling Markdown approaches
Hi guys,
I wrote a markdown based Web editor thing for my sister:
http://ws.dabase.com/
And she has trouble styling blocks of markdown. Since <div
markdown=1>markdown here</div> does not work on my Debian markdown
binary.
Is there a formal definition of markdown? Or some sort of conformance
test? And certain markdown implementations I should be using, and
certain ones I should be
2007 Jan 30
0
No reaction from memcached
I''ve been following the instructions here http://nubyonrails.com/
articles/read/716 on how to get started with memcached.
Starting up ./script/console production I get at couple of deprecation
warnings:
<snip>
./script/console production
Loading production environment.
DEPRECATION WARNING: model is deprecated and will be removed from
Rails 2.0 See
2013 Aug 31
1
Getting back into Dovecot 2.2.5
Hi there,
I'm prompted to get into running my own mail server again with Gmail
going bad.
However I found /usr/share/doc/dovecot/example-config/conf.d/ a little
scary, since I like to have my configs as minimalistic as possible, e.g.
http://dabase.com/blog/Minimal_squid3_proxy_configuration/
So far I have:
https://github.com/Webconverger/sg.webconverger.com/blob/master/dovecot/dovecot.conf
2006 Jan 20
2
The New Memcache ?
Hey All !
I ended up browsing to Eric Hodel''s blog the other night, and found his
entry about the new cache_model and memcache-client.
Now, it looks like it''s "officially" out in the open:
http://weblog.rubyonrails.com/articles/2006/01/20/caching-models-with-memcached
In my application, I''ve been staying away from caching my models, and
instead just doing
2008 Sep 16
1
dabase file and oplocks
Hi all,
I'm using a Linux server (A) with samba 3.0.28 which exports a directory that
contains database files (Dataflex .dat files) and that are mounted by a Linux
machine (B) that runs Samba 3.0.2. Now the problem is that the files are
corrupted when accessed by the machine B, even if the machine A exports the
directory with oplocks = no, kernel oplocks = no and level2 oplocks = no.
2011 Apr 20
6
rake db:create fails
Hello folks,
I´m here trying to find the way to solve my problem.
When i try to run
rake db:create or rake db:create:all
the process stops and the databases are not created.
I change the directives, putting --trace before the rake db:create and
the steps are
C:\appws\cookbook>rake db:create --trace
(in C:/appws/cookbook)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)