{"id":1840,"date":"2014-12-16T17:37:09","date_gmt":"2014-12-16T17:37:09","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=1840"},"modified":"2014-12-16T17:37:09","modified_gmt":"2014-12-16T17:37:09","slug":"working-social-game-entities-couchbase","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/pt\/working-social-game-entities-couchbase\/","title":{"rendered":"Trabalhar com entidades de jogos sociais no Couchbase"},"content":{"rendered":"<p><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">O que h\u00e1 em um novo jogo social? Fundamentalmente, um jogo \u00e9 uma \"experi\u00eancia\" constru\u00edda em torno de uma s\u00e9rie de intera\u00e7\u00f5es entre o jogador, o conte\u00fado e outros jogadores. \u00c9 claro que o conceito do jogo, o enredo, os personagens e os componentes sociais t\u00eam uma grande influ\u00eancia na experi\u00eancia do jogo. Mas no centro da atra\u00e7\u00e3o de um jogo est\u00e3o os objetos no mundo do jogo, a mec\u00e2nica associada a esses objetos e as recompensas oferecidas aos jogadores. Para alimentar toda essa atividade virtual, voc\u00ea precisa de um banco de dados escal\u00e1vel e de alto desempenho. <\/span><\/b><\/p>\n<p><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Neste blog, compartilharei como o Couchbase pode ser usado para potencializar seus elementos b\u00e1sicos de jogo - <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Objetos<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">, <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">A\u00e7\u00f5es<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> e <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Recompensas<\/span><\/b><\/p>\n<div style=\"background-color: transparent; \">\n<h4 dir=\"ltr\" style=\"color: rgb(0, 0, 0); line-height: normal; font-family: Times; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: normal; font-style: normal; font-size: 24px; font-family: Arial; vertical-align: baseline; color: rgb(0, 0, 0); background-color: transparent; font-variant: normal; text-decoration: none; white-space: pre-wrap; \">Objetos do jogo<\/span><\/b><\/h4>\n<div dir=\"ltr\" style=\"color: rgb(0, 0, 0); line-height: normal; font-family: Times; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Quando voc\u00ea cria um jogo social on-line, normalmente representa elementos que fazem parte do mundo do jogo. Eles s\u00e3o chamados de <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">objetos do jogo<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> e podem ser personagens do jogo, itens de vaidade, itens funcionais e buffs, etc. Esses objetos s\u00e3o afetados por eventos no jogo.  Alguns exemplos s\u00e3o<\/span><\/b><\/div>\n<div style=\"background-color: transparent; \">\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); line-height: normal; font-family: Times; font-size: medium; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \">\u00a0<\/p>\n<table align=\"left\" border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"color: rgb(0, 0, 0); line-height: normal; font-family: Times; font-size: medium; width: 500px; \">\n<thead>\n<tr>\n<th scope=\"col\">Tipo de objeto de jogo<\/th>\n<th scope=\"col\">Valor do documento<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Jogador<\/td>\n<td>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">{<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"tipo\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">: <\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"jogador\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"uuid\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">: <\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"35767d02-???a958\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"name\" (nome)<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">: <\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"DonPinto4540\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"pontua\u00e7\u00e3o\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(10, 136, 135); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">663<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"n\u00edvel\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(10, 136, 135); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">4<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"loggedIn\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">: <\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">falso<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">}<\/span><\/b><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Item<\/td>\n<td>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">{<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"tipo\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"item\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"name\" (nome)<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201cAxe_e5890c94-\u00ad???11\u201d<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"uuid\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201ce5890c94-\u00ad???11c6-\u00ad???\u201d<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"ownerId\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"Dale9887\"<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">}<\/span><\/b><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>Monstro<\/td>\n<td>\n<div style=\"background-color: transparent; line-height: normal; \">\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); line-height: normal; \">\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><font class=\"Apple-style-span\" face=\"Arial\" size=\"2\" style=\"color: rgb(0, 0, 0); \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">{<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"tipo\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"monstro\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"name\" (nome)<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"Goliath9932\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"uuid\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(212, 0, 54); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201cd10dfc1b-\u00ad???0412-\u00ad???41\u201d<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"hitpoints\"<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(10, 136, 135); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">370<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 111); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"experienceWhenKilled\" (experi\u00eancia quando morto)<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(10, 136, 135); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">52<\/span><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><br \/><span style=\"font-size: 13px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">}<\/span><\/b><\/font><\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<p style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/p>\n<p style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/p>\n<p style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/p>\n<p style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">No Couchbase, os documentos JSON s\u00e3o usados para modelar objetos de jogos e s\u00e3o identificados usando o ID do documento. Para esses documentos, o <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">tipo<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> \u00e9 usado para definir o tipo do objeto que est\u00e1 sendo armazenado.<\/span><\/b><\/p>\n<h3 style=\"background-color: transparent; color: rgb(0, 0, 0); line-height: normal; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: normal; font-style: normal; font-size: 24px; font-family: Arial; vertical-align: baseline; border-style: initial; border-color: initial; color: rgb(0, 0, 0); background-color: transparent; font-variant: normal; text-decoration: none; white-space: pre-wrap; \">A\u00e7\u00f5es do jogo<\/span><\/b><\/h3>\n<div style=\"color: rgb(0, 0, 0); line-height: normal; font-family: Times; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Como parte do jogo, os jogadores realizam <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">a\u00e7\u00f5es<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> que podem fazer com que os objetos do jogo sejam atualizados ou alterados. Por exemplo, os jogadores podem se deslocar para diferentes \u00e1reas de um mapa, executar a\u00e7\u00f5es e ganhar recompensas, al\u00e9m de recuperar as coordenadas de outros jogadores que est\u00e3o no jogo no momento.  Cada uma dessas a\u00e7\u00f5es do jogador se traduz em visualizar, adicionar, remover ou atualizar documentos no banco de dados. \u00a0<\/span><\/b><\/div>\n<div style=\"color: rgb(0, 0, 0); line-height: normal; font-family: Times; font-size: medium; \">\u00a0<\/div>\n<div style=\"color: rgb(0, 0, 0); line-height: normal; font-family: Times; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-family: Times; font-size: medium; font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Na realidade, os jogos sociais t\u00eam v\u00e1rios jogadores jogando ao mesmo tempo e suas a\u00e7\u00f5es podem afetar o mesmo objeto. Por exemplo, as a\u00e7\u00f5es realizadas em um jogo podem exigir \"energia\" e, quando um jogador fica sem \"energia\", ele precisa recarregar. Itens como speedup e pacotes de energia s\u00e3o bastante comuns em jogos sociais e d\u00e3o um r\u00e1pido impulso de \"energia\" ao jogador. Mas a divers\u00e3o vem da competi\u00e7\u00e3o pelo n\u00famero limitado de pacotes de \"energia\" no jogo. O acesso a objetos de jogo compartilhados precisa ser sincronizado para evitar conflitos e manter um estado de jogo consistente. O Couchbase Server fornece ambos <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-sdk-java-1.1\/couchbase-sdk-java-update-cas.html\/#table-couchbase-sdk_java_cas-expiry-transcoder\"><span style=\"font-size: 15px; font-family: Arial; color: rgb(17, 85, 204); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; \">otimista<\/span><\/a><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> e <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-sdk-java-1.1\/couchbase-sdk-java-retrieve-get-and-lock.html\/\"><span style=\"font-size: 15px; font-family: Arial; color: rgb(17, 85, 204); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; \">pessimista<\/span><\/a><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> controle de simultaneidade. <\/span><\/b><\/div>\n<\/div>\n<\/div>\n<div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Veja a seguir como usar esses mecanismos de concorr\u00eancia. Digamos que dois jogadores queiram anexar a mesma casa na \u00e1rvore ao mesmo tempo. Ao usar os m\u00e9todos CAS e a l\u00f3gica de repeti\u00e7\u00e3o, os programadores de jogos podem garantir atualiza\u00e7\u00f5es at\u00f4micas de objetos de jogos globais compartilhados para manter o estado consistente do jogo.<\/span><\/b><\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \">\u00a0<\/div>\n<div class=\"rtecenter\" style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.couchbase.com\/blog\/sites\/default\/files\/uploads\/all\/cas-game.jpg\" style=\"width: 461px; height: 600px; \" \/><\/span><\/b><\/div>\n<h4 dir=\"ltr\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: medium; font-family: Times; vertical-align: baseline; line-height: 1.25; \"><font class=\"Apple-style-span\" size=\"3\"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: normal; font-style: normal; font-size: 24px; font-family: Arial; vertical-align: baseline; border-style: initial; border-color: initial; color: rgb(0, 0, 0); background-color: transparent; font-variant: normal; text-decoration: none; white-space: pre-wrap; \">Pr\u00eamios do jogo<\/span><\/b><\/font><\/h4>\n<div class=\"rteleft\" style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">A maioria dos jogos tem uma estrutura composta por um ciclo de a\u00e7\u00f5es e <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">pr\u00eamios<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">. Os sistemas de pontua\u00e7\u00e3o s\u00e3o usados em jogos para permitir que os jogadores avaliem o n\u00edvel de dom\u00ednio do jogo e tamb\u00e9m para torn\u00e1-lo um pouco viciante. Normalmente, uma tabela de classifica\u00e7\u00e3o \u00e9 usada para registrar os jogadores com as melhores pontua\u00e7\u00f5es.<\/span><\/b><\/div>\n<\/div>\n<\/div>\n<p class=\"rtecenter\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.couchbase.com\/blog\/sites\/default\/files\/uploads\/all\/leaderboard_games.jpg\" style=\"width: 271px; height: 246px; \" \/><\/p>\n<p style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">As tabelas de classifica\u00e7\u00e3o de jogos podem ser criadas no Couchbase Server 2.0 usando <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-manual-2.0\/couchbase-views.html\/\"><span style=\"font-size: 15px; font-family: Arial; color: rgb(17, 85, 204); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; \">visualiza\u00e7\u00f5es<\/span><\/a><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">. A <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">visualiza\u00e7\u00e3o<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> no Couchbase \u00e9 escrito usando fun\u00e7\u00f5es de mapa\/redu\u00e7\u00e3o que geram um \u00edndice. Para os objetos de jogo JSON mostrados na se\u00e7\u00e3o de objetos de jogo, uma fun\u00e7\u00e3o de mapa (como mostrado abaixo) pode ser usada para gerar uma lista de pontua\u00e7\u00f5es de jogadores. Se o campo jsonType do documento for do tipo <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">jogador, <\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">emitimos a pontua\u00e7\u00e3o do jogador e o ID.<\/span><\/b><\/p>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); font-family: Times; line-height: normal; font-size: medium; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 51, 102); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">fun\u00e7\u00e3o<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">doc<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">)<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">{<\/span><\/b><\/div>\n<div style=\"background-color: transparent; line-height: normal; \">\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 102); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">se<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">doc.<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(102, 0, 102); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">jsonType<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">==<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 102, 204); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"jogador\"<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">){<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0\u00a0\u00a0emitir<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">([<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 102, 204); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"Pontua\u00e7\u00e3o\"<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> \u00a0doc.<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(102, 0, 102); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">pontua\u00e7\u00e3o<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">]<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> doc._id<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">)<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">}<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">}<\/span><\/b><\/p>\n<p><\/p>\n<div dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">A fun\u00e7\u00e3o de mapa acima pode ser usada para criar uma esp\u00e9cie de tabela de classifica\u00e7\u00e3o. Bem, isso depende de como o consultamos. As visualiza\u00e7\u00f5es podem ser consultadas usando a API REST ou outros SDKs, como o PHP.<\/span><\/b><\/div>\n<p><\/p>\n<ol style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-top: 0pt; margin-bottom: 0pt; \">\n<li style=\"list-style-type: decimal; font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; \">\n<p dir=\"ltr\" style=\"text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Para <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/docs\/couchbase-manual-2.0\/couchbase-views-querying-rest-api.html\/\"><span style=\"font-size: 15px; font-family: Arial; color: rgb(17, 85, 204); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; \">consultar a visualiza\u00e7\u00e3o usando REST<\/span><\/a><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> voc\u00ea pode usar o seguinte comando curl - <\/span><\/b><\/p>\n<\/li>\n<\/ol>\n<p><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">curl -X GET -H 'Content-Type: application\/json' <\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">'https:\/\/<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">nome do balde<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">senha<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">@<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">localhost<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">:8092\/<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">nome do balde<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\/_design\/<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">nome do projeto<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\/_view\/<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">nome da visualiza\u00e7\u00e3o<\/span><\/b><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: normal; font-style: normal; font-size: 15px; font-family: Arial; vertical-align: baseline; color: rgb(0, 0, 0); background-color: transparent; font-variant: normal; text-decoration: none; white-space: pre-wrap; \">?<\/span><\/b><b style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">descending=true&amp;connection_timeout=60000&amp;limit=10&amp;skip=0<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">'<\/span><\/b><\/p>\n<p><\/p>\n<ol start=\"2\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-top: 0pt; margin-bottom: 0pt; \">\n<li style=\"list-style-type: decimal; font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; \">\n<p dir=\"ltr\" style=\"text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Para consultar a exibi\u00e7\u00e3o usando PHP, voc\u00ea pode usar o trecho de c\u00f3digo como mostrado abaixo e imprimir as pontua\u00e7\u00f5es dos 10 melhores jogadores - \u00a0<\/span><\/b><\/p>\n<\/li>\n<\/ol>\n<p><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(102, 102, 102); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\/* Configurar o objeto de conex\u00e3o do couchbase *\/<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$lbview<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">=<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$cb<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">-><\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 64, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">getView<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201c<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">nome do balde<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201c<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201c<\/span><span style=\"font-size: 15px; font-family: Arial; color: rgb(255, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">nome da visualiza\u00e7\u00e3o<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201c<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">)<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$apage<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> = <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$lbview-&gt;<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 64, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">getResult<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><a href=\"https:\/\/www.php.net\/array\"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(153, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">matriz<\/span><\/a><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"descendente\"<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">=><\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">verdadeiro<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">))<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$rowCtr<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">=<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> 0;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(177, 177, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">antes de<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$apage<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">-><\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 64, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">linhas<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(177, 177, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">AS<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$row<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">)<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">{<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(177, 177, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">se<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$rowCtr<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <= <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">9<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">)<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0{<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0\u00a0<\/span><a href=\"https:\/\/www.php.net\/printf\"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(153, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">printf<\/span><\/a><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">(<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\"Pontua\u00e7\u00e3o <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 51); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">%s<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> para o usu\u00e1rio <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 51); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">%s<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">.<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 153); background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">n<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 255); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u201c<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$row<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">-><\/span><a href=\"https:\/\/www.php.net\/key\"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(153, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">chave<\/span><\/a><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">[<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(204, 102, 204); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">1<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">]<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">,<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(34, 34, 34); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \"> <\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$row<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">-><\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 64, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">valor<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">)<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">;<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(51, 153, 51); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0\u00a0\u00a0<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 0, 136); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">$rowCtr = $rowCtr + 1;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0\u00a0}<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0\u00a0\u00a0<\/span><span style=\"font-size: 13px; font-family: Verdana; color: rgb(177, 177, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">mais<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; margin-left: 36pt; text-align: justify; margin-top: 0pt; margin-bottom: 0pt; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0pausa;<\/span><\/b><\/p>\n<p><b id=\"internal-source-marker_0.7206992749124765\" style=\"color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-weight: normal; \"><span style=\"font-size: 13px; font-family: Verdana; color: rgb(0, 153, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">}<\/span><\/b><\/p>\n<\/div>\n<p><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 24px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Considera\u00e7\u00f5es finais<\/span><\/b><\/p>\n<div><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-family: Times; font-size: medium; font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">H\u00e1 um pouco de c\u00f3digo de aplicativo que precisa ocorrer aqui para traduzir a sa\u00edda da visualiza\u00e7\u00e3o mapreduce em um formato \u00fatil, mas, em geral, \u00e9 muito f\u00e1cil criar uma tabela de classifica\u00e7\u00e3o usando o Couchbase. Espero que isso ajude algu\u00e9m a utilizar os novos recursos do Couchbase Server 2.0 (visualiza\u00e7\u00f5es). Para obter uma vis\u00e3o mais detalhada das visualiza\u00e7\u00f5es, consulte os documentos: https:\/\/www.couchbase.com\/docs\/couchbase-manual-2.0\/couchbase-views.html <\/span><\/b><\/div>\n<div style=\"background-color: transparent; color: rgb(0, 0, 0); line-height: normal; \"><b id=\"internal-source-marker_0.7206992749124765\" style=\"font-weight: normal; \"><span style=\"font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; \">Jogo em andamento!<\/span><\/b><\/div>","protected":false},"excerpt":{"rendered":"<p>What\u2019s in a new social game? Fundamentally, a game is an \u201cexperience\u201d built around a series of interactions between the player, the content, and other players. Sure, the concept of the game, the storyline, the characters, and social components all [&hellip;]<\/p>","protected":false},"author":4,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"ppma_author":[8972],"class_list":["post-1840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.8 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Working with social game entities in Couchbase - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/pt\/working-social-game-entities-couchbase\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Working with social game entities in Couchbase\" \/>\n<meta property=\"og:description\" content=\"What\u2019s in a new social game? Fundamentally, a game is an \u201cexperience\u201d built around a series of interactions between the player, the content, and other players. Sure, the concept of the game, the storyline, the characters, and social components all [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/pt\/working-social-game-entities-couchbase\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-16T17:37:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/11\/couchbase-nosql-dbaas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Don Pinto, Principal Product Manager, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Don Pinto, Principal Product Manager, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/\"},\"author\":{\"name\":\"Don Pinto, Principal Product Manager, Couchbase\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/eb130a1e0278989e089a7fbbf8bc754c\"},\"headline\":\"Working with social game entities in Couchbase\",\"datePublished\":\"2014-12-16T17:37:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/\"},\"wordCount\":797,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/\",\"name\":\"Working with social game entities in Couchbase - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2014-12-16T17:37:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Working with social game entities in Couchbase\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/eb130a1e0278989e089a7fbbf8bc754c\",\"name\":\"Don Pinto, Principal Product Manager, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/39c6d6178c73f0dc09af63f930a4f37d\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/574759a111515cb8c5d5a1f5268d2759050bd8383654dc0d9393324f0c35fae0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/574759a111515cb8c5d5a1f5268d2759050bd8383654dc0d9393324f0c35fae0?s=96&d=mm&r=g\",\"caption\":\"Don Pinto, Principal Product Manager, Couchbase\"},\"description\":\"Don Pinto is a Principal Product Manager at Couchbase and is currently focused on advancing the capabilities of Couchbase Server. He is extremely passionate about data technology, and in the past has authored several articles on Couchbase Server including technical blogs and white papers. Prior to joining Couchbase, Don spent several years at IBM where he maintained the role of software developer in the DB2 information management group and most recently as a program manager on the SQL Server team at Microsoft. Don holds a master's degree in computer science and a bachelor's in computer engineering from the University of Toronto, Canada.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/pt\/author\/don-pinto\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Working with social game entities in Couchbase - The Couchbase Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/pt\/working-social-game-entities-couchbase\/","og_locale":"pt_BR","og_type":"article","og_title":"Working with social game entities in Couchbase","og_description":"What\u2019s in a new social game? Fundamentally, a game is an \u201cexperience\u201d built around a series of interactions between the player, the content, and other players. Sure, the concept of the game, the storyline, the characters, and social components all [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/pt\/working-social-game-entities-couchbase\/","og_site_name":"The Couchbase Blog","article_published_time":"2014-12-16T17:37:09+00:00","og_image":[{"width":1800,"height":630,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/11\/couchbase-nosql-dbaas.png","type":"image\/png"}],"author":"Don Pinto, Principal Product Manager, Couchbase","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Don Pinto, Principal Product Manager, Couchbase","Est. reading time":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/"},"author":{"name":"Don Pinto, Principal Product Manager, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/eb130a1e0278989e089a7fbbf8bc754c"},"headline":"Working with social game entities in Couchbase","datePublished":"2014-12-16T17:37:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/"},"wordCount":797,"commentCount":2,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","articleSection":["Uncategorized"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/","url":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/","name":"Working with social game entities in Couchbase - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2014-12-16T17:37:09+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/working-social-game-entities-couchbase\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Working with social game entities in Couchbase"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"Blog do Couchbase","description":"Couchbase, o banco de dados NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"Blog do Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/eb130a1e0278989e089a7fbbf8bc754c","name":"Don Pinto, gerente principal de produtos da Couchbase","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/39c6d6178c73f0dc09af63f930a4f37d","url":"https:\/\/secure.gravatar.com\/avatar\/574759a111515cb8c5d5a1f5268d2759050bd8383654dc0d9393324f0c35fae0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/574759a111515cb8c5d5a1f5268d2759050bd8383654dc0d9393324f0c35fae0?s=96&d=mm&r=g","caption":"Don Pinto, Principal Product Manager, Couchbase"},"description":"Don Pinto \u00e9 gerente de produto principal da Couchbase e atualmente est\u00e1 concentrado no avan\u00e7o dos recursos do Couchbase Server. Ele \u00e9 extremamente apaixonado por tecnologia de dados e, no passado, foi autor de v\u00e1rios artigos sobre o Couchbase Server, incluindo blogs t\u00e9cnicos e white papers. Antes de ingressar no Couchbase, Don passou v\u00e1rios anos na IBM, onde ocupou a fun\u00e7\u00e3o de desenvolvedor de software no grupo de gerenciamento de informa\u00e7\u00f5es DB2 e, mais recentemente, como gerente de programa na equipe do SQL Server na Microsoft. Don tem mestrado em ci\u00eancia da computa\u00e7\u00e3o e \u00e9 bacharel em engenharia da computa\u00e7\u00e3o pela Universidade de Toronto, no Canad\u00e1.","url":"https:\/\/www.couchbase.com\/blog\/pt\/author\/don-pinto\/"}]}},"authors":[{"term_id":8972,"user_id":4,"is_guest":0,"slug":"don-pinto","display_name":"Don Pinto, Principal Product Manager, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/574759a111515cb8c5d5a1f5268d2759050bd8383654dc0d9393324f0c35fae0?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=1840"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1840\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=1840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=1840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=1840"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=1840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}