Commit graph

106 commits

Author SHA1 Message Date
j
e1f7c784ad use pdftocairo for pdf preview 2018-11-06 15:25:42 +01:00
j
0a4c507346 batch item/documents edit 2018-09-19 00:14:34 +02:00
j
cc56858377 import Group from user.models 2018-07-29 20:28:46 +00:00
j
6296be870b use get_user_model 2018-07-29 21:12:56 +01:00
j
0d0770802c get_json -> json 2018-07-09 15:22:12 +02:00
j
1bac062a50 use postgres json field 2018-07-09 15:22:12 +02:00
j
dbf740e55e use .editorconfig 2018-06-19 08:33:26 +02:00
j
6fd8d2aef3 fix query for documents rightslevel 2017-11-08 18:00:30 +01:00
j
7521467975 split documentsort into it's own manage.py command, does not get applied during install otherwise 2017-10-24 21:28:22 +02:00
j
4fae41c463 extension should always be lowercase 2017-05-28 13:40:56 +02:00
j
5e37a2d222 add upload to changelog 2017-03-12 22:01:32 +02:00
j
ed7a56a5e9 only cleanup if needed 2017-03-12 14:51:52 +02:00
j
4733dc8994 text can be empty too 2017-03-12 14:50:13 +02:00
j
f0a4aba751 use python_2_unicode_compatible 2017-03-03 08:56:35 +01:00
j
72fdc8ed4d fix sort in collection list view 2017-03-02 12:37:53 +01:00
j
5947f2295b only delete existing values 2017-02-21 17:46:16 +01:00
j
2f6e7d39c9 fix editing html documents 2017-02-16 18:31:24 +01:00
j
74407183ac fix migration 2017-02-16 18:31:09 +01:00
j
12f3901c9a py3 filter->list(filter 2017-02-16 14:24:51 +01:00
j
620c8a7d96 fix document creation 2017-01-27 12:26:55 +00:00
j
b23ca9df74 store document references in db 2017-01-26 15:56:28 +00:00
j
e4316c9b44 document references 2017-01-25 21:45:54 +01:00
j
0db8ca6c47 document icon, fixes #2987 2017-01-25 17:42:49 +01:00
j
aeab4d03de keep private texts private 2017-01-25 17:39:12 +01:00
j
bf8c99513b no access to private documents 2017-01-25 00:13:37 +01:00
j
c4350e2334 py3 2017-01-24 16:19:34 +01:00
j
f71240ac2c look in the right place, fixes #2989 2017-01-20 17:44:31 +01:00
j
6ad112a3b8 fix pdf upload 2016-11-30 11:36:29 +01:00
j
95131a6429 use lower case extensions 2016-10-30 18:23:16 +01:00
j
e1f35b1ec8 new documents section 2016-10-30 18:23:16 +01:00
j
d4a232d594 py3 decode 2016-10-28 18:18:26 +02:00
j
9ef306ab53 support getting related items 2016-09-23 22:58:31 +02:00
j
b7659d6f14 cleanup document cache after upload 2016-09-23 22:58:31 +02:00
j
29600fa5f7 import unquote, fixes #2969 2016-09-20 15:59:49 +02:00
j
1468ddbecb towards supporting python 2 and 3
- use absolute_imports
- make use of six.moves
- use exec instead of execfile
- use list(dict) instead if dict.keys()
2016-08-25 18:34:36 +02:00
j
c7157d5001 only decode ids for found positions
merge document.view.get_positions into item.utils.get_positions
add flag to decode id before looking up in ids

Followup to 09ebbc9cc6
2016-06-30 16:18:07 +02:00
j
3d95d7013a Merge remote-tracking branch 'wjt/2935-findDocuments-performance' 2016-06-30 15:43:09 +02:00
j
e9863c238e always use get_operator, avoid case-insensitive match if possible 2016-06-30 11:28:09 +02:00
09ebbc9cc6
findDocuments: improve performance of positions queries
References #2935
2016-06-28 16:36:55 +01:00
8d25e3be78
findDocuments: improve entity query performance
When I implemented this in 9a4c24c, there were not many rows in
entity_documentproperties in the database here. Now that there are,
computing the document_document -> entity_documentproperties ->
entity_entity join and then filtering is really, really slow. Postgres
seems to materialize the whole join and then scan it.

If we get a set of matching document IDs for the entity query in a
subquery, and then just filter with IN on that, things are much faster:
scan entity_entity; in a nested loop, get the document_ids via
entity_documentproperties; hash this set; and then scan
document_document.

Searching for a single character, this brings the query from ~1.1s to
~400ms. Searching for a full word, ~800ms to 120ms

This condition is getting really ugly -- I am sorry!

References #2935
2016-06-28 16:33:01 +01:00
j
2cec1b9ad5 s/import Image/from PIL import Image/g 2016-06-25 20:39:29 +02:00
a8dcbbbe89 Include DocumentProperties.data in Document.json() 2016-03-05 15:07:47 +05:30
9a4c24cdb4 Support searching documents by entities 2016-03-04 12:41:41 +00:00
738a9282b4 Document: fix negating id queries 2016-03-04 12:41:41 +00:00
6e0049a20c Don't save Document in pre_delete handler (fixes #2889)
FileField.delete() will, by default, save() the model instance it is
attached to. This is pointless if we're in the process of deleting the
Document -- and since Document.save() calls Document.update_matches(),
this scans all annotations every time a document is deleted.
2016-03-03 18:10:29 +05:30
j
051a3578b4 inline django 1.9 version of ox.django 2016-02-20 10:41:23 +00:00
j
0367816257 only crop with 4 crop points 2016-02-20 10:41:22 +00:00
j
4219246909 db migration 2016-02-20 15:15:01 +05:30
j
1cc795995d user.get_profile()->user.profile 2016-02-19 22:06:11 +05:30
j
5d63ad1760 default/upload_to=lambda breaks migrations, use functions 2016-02-19 21:59:26 +05:30