Skip to content

Instantly share code, notes, and snippets.

View niqbal's full-sized avatar
😊

Nawab Iqbal niqbal

😊
View GitHub Profile
@niqbal
niqbal / Solr7Shards.scala
Last active March 6, 2018 18:52
Experiment with the distribution of documents using Solr composite key router
import com.niqbal.shard.ShardHash.{c, getShardNumber, router, s}
import org.apache.solr.common.cloud.{DocCollection, DocRouter, Slice}
import scala.collection.JavaConverters._
import scala.collection.mutable
import scala.io.Source
class ShardHash {
@niqbal
niqbal / herokudb.md
Created July 19, 2011 23:03
heroku db:pull/:push on windows

I just went through exporting and importing database on windows. There were few hiccups which I wanted to log, lest I forget:-

"heroku db:pull" pulls heroku data down into local database; while "heroku db:push" pushes data from local database to the application.

Dependencies

mysql 5.5 (32 bit version running on windows 64 bit)

heroku (version 2.3.6)

ruby 1.9.2