OrientDB

OrientDB automatic pagination returning duplicate result, short pages, and an infinite sequence of pages

天大地大妈咪最大 提交于 2019-12-12 03:37:37
问题 I'd like to iterate through a very large set of records in orientdb. So that the result doesn't fill up my machine's memory, I've tried to implement paginated queries, but I seem to be getting back duplicated documents record sets shorter than the page size a infinite series of results The original Java method listed in the docs is as follows: OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<ODocument>("select from Customer LIMIT 20"); for (List<ODocument> resultset = database.query(query

OrientDB keeps locking records indefinitely

你。 提交于 2019-12-12 03:34:20
问题 I'm running OrientDB (community edition 2.2.9) in distributed mode with multiple nodes. After a couple of minutes, I start getting the following error on my queries: com.orientechnologies.orient.server.distributed.task.ODistributedRecordLockedException: Timeout (1500ms) on acquiring lock on record #1010:2651. It is locked by request 3.1000 DB name="MyDatabase" The query in this instance looks like this: UPDATE #1010:2651 SET name='foo'; The record remains locked and I can't run the query

Database schema is different - Exception in OrientDB - Baasbox

送分小仙女□ 提交于 2019-12-12 03:25:06
问题 I am getting the following exception on starting up baasbox (it has embedded orientdb). This exception happens when I connect to the database using console.sh/connect:plocal and then run a few select queries, but doesn't happen the first time I startup baasbox. Any help is appreciated. Orientdb version: 1.7.10 com.orientechnologies.orient.core.exception.OConfigurationException: Database schema is different. Please export your old database with the previous version of OrientDB and reimport it

error in Spring AuthorizationServerConfigurerAdapter when assigning Jdbc datastore to ClientDetailsService

末鹿安然 提交于 2019-12-12 01:54:14
问题 Hi I am creating the AuthorizationServerConfigurerAdapter authentication server with Spring Oauth2. I have selected JdbcTokenStore and set the TokenStore database as OrientDb. Here is how I am defining clientDetailsService @Override public void configure(ClientDetailsServiceConfigurer clients) throws Exception { // @formatter:off DataSource dataSource = DataSourceBuilder.create() .driverClassName("com.orientechnologies.orient.jdbc.OrientJdbcDriver") .url("jdbc:orient:remote:localhost/pricewiz

Transaction in orientdb and waterline

无人久伴 提交于 2019-12-12 01:48:54
问题 I am trying to to create transaction in waterline but I am getting this error from OrientDB: com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: Cannot find a command executor for the command request: sql.BEGIN Here is my code: try { itemsModel.query("BEGIN", function(err) { if (err) {throw new Error(err);} itemsModel.update({id:items_ids,status:ACTIVE},{status:INACTIVE}) .exec(function(err, INA_items){ if (err) {throw new Error(err);} if (INA_items.length != items

will Gremlin graph queries always perform operations in it's own address space?

我的未来我决定 提交于 2019-12-12 01:29:42
问题 admittedly, most of my database experience is relational. one of the tenets in that space is to avoid moving data over the network. this manifests by using something like: select * from person order by last_name limit 10 which will presumably order and limit within the database engine vs using something like: select * from person and subsequently ordering and taking the top 10 at the client which could have disastrous effects if there are a million person records. so, with Gremlin (from

Can arrows get lables in Neo4J

只谈情不闲聊 提交于 2019-12-12 01:23:49
问题 Can arrows between nodes get labels similar to nodes in Neo4J. Nodes can be annotated by labels in Neo4J. If the answer is NO, Is there any graphDB that arrows can accept labels as well as nodes and these labels are used in their corresponding query languages? UPDATE: here a similar question is asked, and the answer was NO! anything changed since then? 回答1: A relationship ("arrow") has a single "type", which is similar to a node label. However, a relationship can only have a single type. 来源:

Tinkerpop 3.1 on OrientDB?

こ雲淡風輕ζ 提交于 2019-12-11 23:27:51
问题 is there any way to run Tinkerpop Gremlin 3.1 traversals in OrientDB? I've noticed that currently the DBMS supports the previous version (2.x) of the Tinkerpop traversal language which, for example, only allows to directly filter edges by label, but not vertices :( . I was quite satisfied with gremlin-scala and orientDB-gremlin but I found that not all my queries where efficiently executed (some indexes were ignored). Is there any other way? Thanks in advance :) 回答1: Orientdb-gremlin is

DateTime conversion error on insert into OrientDB

自作多情 提交于 2019-12-11 22:10:15
问题 Error on conversion of date '2014-03-09T02:42:09.893' using the format: yyyy-MM-dd'T'HH:mm:ss.SSS The type of error here is com.orientechnologies.orient.core.exception.OQueryParsingException . I set the DateTime format using: ALTER DATABASE DATETIMEFORMAT yyyy-MM-dd'T'HH:mm:ss.SSS Further, I know this is a bug with Orient vs the Node API I use because this also fails in the console: INSERT INTO User ("settings", "acceptedTerms", "activitiesCount", "appFirstUseDate", "birthday", "email",

OrientDB use result of subquery to search index

南楼画角 提交于 2019-12-11 20:37:24
问题 I am using OrientDb 2.1-rc4 as a document database. I have a MyClass class that gets updated very frequently by a multithreded application. To improve performance I removed the link from the State class to MyClass , and added a link and index from MyClass to State. In order to get all instances of MyClass I need to get a list of State rids and then query the index. This query gets my State rids. SELECT DISTINCT(roles.views.states.@rid) FROM #12:1 returns [["#14:0","#14:1"]] This query finds