Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > rake index
- Builds indexes nicely for everything.
- > rake index:specific[users,first_name]
- Messes up the index number(the 'format :to_s' is ignored, string '4d234235F4252' is just a 4 in the file), but reads from the database :)
- So, keys are refreshed, but values are messed up.
- > Indexes.find(:users, :first_name).index!
- "12:18:44: "first_name": Starting parallel indexing." # log entry
- Doesn't reindex the data.
- > Indexes.find(:users, :first_name).cache!
- # log entries
- 12:22:30: "users:first_name:exact": Loading index.
- 12:22:30: "users:first_name:exact": Caching from intermediate in-memory index.
- 12:22:30: "users:first_name:partial": Generating partial index for index.
- 12:22:30: "users:first_name:partial": Caching from intermediate in-memory index.
- 12:22:30: "users:first_name:exact": Dumping index.
- 12:22:30: "users:first_name:exact": Dumping similarity of index.
- 12:22:30: "users:first_name:exact": Dumping weights of index.
- 12:22:30: "users:first_name:exact": Dumping configuration for index.
- 12:22:30: "users:first_name:partial": Dumping index.
- 12:22:30: "users:first_name:partial": Dumping similarity of index.
- 12:22:30: "users:first_name:partial": Dumping weights of index.
- 12:22:30: "users:first_name:partial": Dumping configuration for index.
- 12:22:30: "users:first_name": Caching finished.
- Reindexes and loads the data into the cache for a single category.
- Working as intended.
Add Comment
Please, Sign In to add comment