-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,13 @@ For further developer and user documentation please visit [the wiki](https://git | |
are listed on the [ownCloud apps overview](https://github.com/owncloud/core/wiki/Apps) | ||
|
||
## Dependencies | ||
* At least a 64bit operating system, otherwise sync will not work | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
BernhardPosselt
Member
|
||
* PHP >= 5.6 | ||
* ownCloud >= 9.0 | ||
* libxml >= 2.7.8 (2.9 recommended) | ||
* php-curl | ||
* iconv | ||
* SimpleXML | ||
* PHP >= 5.6 | ||
|
||
## Build Dependencies | ||
These Dependencies are only relevant if you want to build the source code: | ||
|
11 comments
on commit 4f5e4df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't use GUID as an identifier? It's unique, it's 128bit, it's not require 64bit system and at last it's allowed to synchronize different devices/databases without rebuilding identifiers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guid is not unique and this is about change detection (think of marking an item read on the server) so this is the wrong place to look at ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guid is not unique
Ok. It's "almost" unique:)
I'm not understand how unique identifier links to change detection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Loki3000 right, because it doesnt :)
The 64bit requirement is about last modified timestamps in miliseconds for HTTP caching. Think of it like "give me all changes that are newer than this timestamp"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's better to use BC Math except 64bit?
http://php.net/manual/en/ref.bc.php
Could you show in which place you use bigint as a number in php? Maybe it's possible to move such comparison completely to database engine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparison is in php and database, basically: select all entries with a timestamp lower than the current one and don't send all properties to the client if the given timestamp is lower than the current one. I don't think you can use a big number lib for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically once you construct the number it's game over on 32 bit and the number is passed as etag from the client (as string) but needs to be converted to an integer for pdo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is unless it's possible to pass strings for bigints (if so we can work around that)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparison in php can fully be done using datetime objects btw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tldr: If the pdo string for bigints works we can drop the 64 bit restriction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussion continues here: #9
@Loki3000 thanks for the input, you brought me on the right track ;)
Need one last confirmation, please check out #9 (comment)
is this also true for the current API or just for v2?