I am rebuilding Lovers on Facebook with Sinatra and Redis and I want:
Each user has two ordered sets of Redis ( reqSentand reqRecv) that store uids. SCOREwhich we order with requests is time(a UNIX timestamp) the request has been made. I use ordered sets instead of lists, because the user can only do. The request type (rid) is encoded as a number and appended to the uid. (rid | uid) For example, for a user with uid = 100 we can have:
reqSent
reqRecv
SCORE
time
100:reqSent => ["1|123", "2|123", "2|134"] # format: ["rid|tid"] 100:reqRecv => ["3|343", "5|142", "4|2224"] # format: ["rid|uid"]
MongoDB supports geospatial indexing natively, so I'm thinking of switching to this.
Otherwise, how do I implement geospatial indexing using Redis? Should I do this with Sunspot (localsolr)? Apparently you can use Sunspot with Redis .
- redis. redis. lat/long , , , , , . , , , , /.
, , redis - ad hoc- .
Redis , , MongoDB . . , , Mongo.
Mongo, Redis . , , - . , , , , . .
, Sunspot, Redis? Solr, ? , Redis, , , MongoDB.
Source: https://habr.com/ru/post/1784313/More articles:query optimization on Sql Server 2005 - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1784309/refreshing-pages-too-much&usg=ALkJrhjRgrWzoYllwmPW3-U4zHtQ1tThYgWhy is there a / postfix ++ prefix but no / postfix + = prefix? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1784311/how-to-send-simulated-keyboard-strokes-to-the-active-window-using-sendkeys&usg=ALkJrhgB5zgaIpR9-hBlBYJMUhTOy-Zu6ADrowning a file from server to client with servlet - javaHow do you vertically center legends using the Google Graphics API? - graphHow to remove jstring sent from Native Code back to Java? - c ++Dynamically adding text field in android - javaPython Fast Monochrome Bitmap - performanceWhat happened to my regex? - regexAll Articles